golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
121.59k stars 17.41k forks source link

net/http: have DefaultTransport support all_proxy (SOCKS5) by default #31813

Open bradfitz opened 5 years ago

bradfitz commented 5 years ago

Now that https://go-review.googlesource.com/c/net/+/168921 is in, we have good context support for doing SOCKS5 dials in x/net/proxy.

We should use it from net/http.DefaultTransport so the $ALL_PROXY (and $all_proxy) environment variable lets users configure SOCKS5.

gopherbot commented 5 years ago

Change https://golang.org/cl/175100 mentions this issue: proxy: add ProxyFromEnvironmentUsing

bcmills commented 5 years ago

@bradfitz, do you intend to implement this yourself for 1.14? (What milestone should it be set at?)

aryan9600 commented 1 year ago

hello, are there any plans to move this forward? i'd be willing to work on this, if needed :)