Skip to content

Is socks5h supported? #441

Answered by database64128
Klaaktu asked this question in Q&A
Mar 4, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Some applications don't recognize socks5h and simply treat it as an HTTP proxy, which can cause issues. For example, if you only set ALL_PROXY=socks5h://localhost:1080/, Git LFS will treat it as an HTTP proxy. But if you only set ALL_PROXY=socks://localhost:1080/, cURL will use your local resolver, which may not be desirable in your network environment.

In practice, you can set it this way:

  • ALL_PROXY=socks://localhost:1080/
  • HTTP_PROXY=http://localhost:8080/
  • HTTPS_PROXY=http://localhost:8080/

Most applications (Git LFS, cURL, etc) will use the HTTP proxy and work correctly. Applications that support ALL_PROXY will recognize socks and most likely send requests directly without your local …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Klaaktu
Comment options

You must be logged in to vote
2 replies
@zonyitoo
Comment options

@Klaaktu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants