add -w whitelist option
commitb3996c548901794910856c183a983874817bb177
authorrofl0r <rofl0r@users.noreply.github.com>
Fri, 24 May 2024 20:59:41 +0000 (24 20:59 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Fri, 24 May 2024 20:59:41 +0000 (24 20:59 +0000)
tree4969f76f808f3dc29d600dddab6fd92694eaabd7
parent08c1e1b66b9f69c61c73e5b5d3f625ac346d227c
add -w whitelist option

based on the idea of @mimi89999 and later @gallantron.

the whitelist option is the logical conclusion to complement
the -1 (auth-once) option, and i've been in favor of adding
the feature since i first saw the idea.

if the user's ip is known beforehand, one doesn't have to
run a command especially to "unlock" the ip for no-auth use.
one of the few cases where it makes sense to add another
command line option, since we're basically just reusing
an already existing feature.

however there were some technical issues in the original PR
(like using stdbool.h) and not using a list, which made me
want to write the functionality myself. until i forgot.

now there's been a second PR implementing the same
functionality again, but with more complex rules, and as well
without making it possible to process a list of ips.

closes #46
closes #75
README.md
sockssrv.c