implement "auth-once" mode with option "-1"
this allows to use the server in "secure" user/pass auth mode, but
allowing also non-authed connections from IP addresses that previously
authed successfully.
this is needed because some applications support SOCKS5 only half-assed
without authentication (example: firefox).
so if you don't want your proxy to show up in public listings and be
abused by spammers, you can use this option to punch a hole into the
"firewall".
the first idea to achieve this was to use some kind of port-knocking
or auth scheme on a separate port, but then it appeared much more
straigthforward to just re-use the existing auth mechanism.
my rocksocks library could be used easily to create a small application
that just does one single connection over the SOCKS5 server with
username/password, and from there on all apps can use the no-auth
connection scheme (until your ip changes).
note that once white-listed ip addresses never get invalidated,
so you may want to restart the SOCKS5 server from time to time, if you
fear that other users may be able to use one of the IPs you had in the
past.