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 socks client UDP outbound's wrong destination #522

Merged
merged 1 commit into from
Dec 15, 2020

Conversation

database64128
Copy link
Contributor

  • When you connect to a non-localhost socks5 server, in the response of a UdpAssociate from a socks5 server, the remote address may be :: or 0.0.0.0. The previous behavior is to connect to the remote address in the response, which obviously fails.
  • This PR changes the behavior to dial to the outbound server's address when the remote address in the response is :: or 0.0.0.0.
  • Rename cmdUDPPort to cmdUDPAssociate for clarity.

- When you connect to a non-localhost socks5 server, in the response of a UdpAssociate from a socks5 server, the remote address may be `::` or `0.0.0.0`. The previous behavior is to connect to the remote address in the response, which obviously fails.
- This commit changes the behavior to dial to the outbound server's address when the remote address in the response is `::` or `0.0.0.0`.
- Rename `cmdUDPPort` to `cmdUDPAssociate` for clarity.
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.

2 participants