shapeshifter-dispatcher
shapeshifter-dispatcher copied to clipboard
Fix parameter validation in SOCKS5 mode
validateServerBindAddr is always getting called, which requires that a valid combination of --bindaddr, --bindhost, and --bindport are set, but those parameters can't be used in SOCKS5 mode. This just skips the parameter validation in SOCKS5 mode, because the TOR_PT_SERVER_BINDADDR env var will get validated later in getServerBindaddrs anyway.
I also updated the README example so that the env var parses correctly.