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

fixs socks5 getaddrinfo&dns leak, and enable auth #1195

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

NewUserHa
Copy link
Contributor

@NewUserHa NewUserHa commented Nov 16, 2022

Issue: #1194

Background:
The pysocks has a bug issue: when the socket class is monkeypatched, even if asks for remote resolving, the DNS will still not go through the proxy. related: https://www.github.com/Anorov/PySocks/issues/22
So it caused the getaddrinfo failed problem in some unstable DNS situations.

In this PR:

  • Fixed the "getaddrinfo failed" issue. And keep always choose remote resolving, it can prevent with local resolving causing waiting too long every time if users happen to have an unstable DNS situation, and can prevent privacy leaks.
  • Added auth argument to setdefaultproxy().

@Nandaka Nandaka merged commit f2e9ab1 into Nandaka:master Nov 16, 2022
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