1
0
mirror of https://github.com/skeeto/endlessh.git synced 2024-05-19 06:49:58 +00:00

28 Commits

Author SHA1 Message Date
7ac1fbff3b Always ignore SIGPIPE
MSG_DONTWAIT doesn't work quite right on OmniOS / Solaris, so also
disable SIGPIPE.
2019-02-03 15:32:45 -05:00
2bd2b3ca92 Just drop IPV6_V6ONLY (it never works right anyway)
This doesn't seem to work as documented on any system.
2019-02-03 15:28:09 -05:00
08a9dfe97e Check for IPV6_V6ONLY before using it
This is necessary for supporting OmniOS (Solaris), which doesn't
actually document how to actually define this flag. This platform also
requires LDLIBS='-lsocket -lnsl' when compiling.
2019-02-03 15:25:25 -05:00
2f418df897 Don't use :port since that doesn't work with IPv6 2019-02-03 13:06:14 -05:00
94d9a91407 Reject extraneous arguments 2019-02-03 13:03:40 -05:00
09bb8be32a Listen on both ipv6 and ipv4 2019-02-03 12:48:37 -05:00
2f79375360 Explicitly initialize sockaddr_in members 2019-02-03 12:28:47 -05:00
93b94f6b44 Correct for different definitions of sockaddr_in
On BSD it doesn't like the braces, and on Linux it prefers braces. Ugh.
2019-02-03 12:10:17 -05:00
ae67a263f9 Tweak the README a bit 2019-02-03 12:04:23 -05:00
8e1d9fc28a Make it clear when the config file is loaded 2019-02-03 12:00:35 -05:00
7619af17ba Add sample config file to the README 2019-02-03 11:59:11 -05:00
90ce8a6696 Restart listening socket if port config changes 2019-02-03 11:55:15 -05:00
d9c5d3fcf0 Allow configuration via config file (-f, SIGHUP) 2019-02-03 11:47:20 -05:00
5c6328c6f2 Formalize configuration managment 2019-02-03 11:46:40 -05:00
3a0126bd99 Add note about queue_remove() 2019-02-03 10:06:12 -05:00
d5726be23d Tighten up integer argument parsing 2019-02-03 09:42:27 -05:00
4bd7b1a3ea Fix up max clients option 2019-02-03 09:39:10 -05:00
66c549c87c Add -l to control banner line length 2019-02-03 09:39:10 -05:00
ce7e3e5914 Allow graceful shutdown with SIGTERM 2019-02-03 09:18:38 -05:00
3a1d0048f9 Tweak README 2019-02-03 08:26:42 -05:00
94aa40778c Make log messages line buffered 2019-02-03 08:18:55 -05:00
112e5b303f Vastly improve logging 2019-02-03 08:11:52 -05:00
81046bcdec Reduce line line length
If clients have a maximum banner size, this will help to keep them
around for longer.
2019-02-03 08:08:27 -05:00
1f1ce4e26d Adapt max_clients on EMFILE or ENFILE 2019-02-02 23:19:44 -05:00
891584a361 Fix random underflow 2019-02-02 23:19:23 -05:00
dca3ca646f Don't forget to double the known capacity 2019-02-02 23:18:56 -05:00
8c37ff055a Don't use a function named log() 2019-02-02 22:43:41 -05:00
7fbba1e7b0 Initial working code 2019-02-02 22:38:59 -05:00