Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parameter validation in SOCKS5 mode #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dlwcarr
Copy link

@dlwcarr dlwcarr commented Oct 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant