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

Will it support socks5h #346

Closed
feeops opened this issue Apr 19, 2024 · 2 comments
Closed

Will it support socks5h #346

feeops opened this issue Apr 19, 2024 · 2 comments

Comments

@feeops
Copy link

feeops commented Apr 19, 2024

The main difference between socks5 and socks5h lies in how they handle hostname resolution.

Socks5: This is the standard SOCKS5 protocol, which is used for proxying network connections. It supports TCP or UDP connections and provides enhanced security features. However, it does not inherently support hostname resolution, meaning that the client is responsible for resolving the hostname to an IP address before connecting to the proxy server. This can be a limitation in scenarios where the client needs to access resources using domain names rather than IP addresses.

Socks5h: The h in socks5h stands for "hostname," indicating that this version of the SOCKS5 protocol supports hostname resolution. Unlike the standard Socks5, the socks5h proxy can resolve hostnames, making it suitable for scenarios requiring domain-specific access. This feature enhances flexibility and accuracy in data acquisition, especially in tasks that involve data collection based on domain names

In summary, if your application or use case requires accessing resources using domain names, socks5h would be the more appropriate choice due to its ability to resolve hostnames. On the other hand, if your needs are straightforward and do not involve domain name resolution, the standard socks5 protocol should suffice.

@ManuelReschke
Copy link

i think this is already implemented https://req.cool/docs/tutorial/proxy/

Socks5:
client.SetProxyURL("socks5://myproxy:1080")

Socks5h:
client.SetProxyURL("socks5h://myproxy:1080")

@nclv
Copy link

nclv commented Jul 22, 2024

socks5h is socks5 in Go, and there's no socks5 (local hostname resolution).

@feeops feeops closed this as completed Jul 24, 2024
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

No branches or pull requests

3 participants