-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/net/proxy: Non-SOCKS ALL_PROXY results in proxy: unknown scheme: http #16715
Comments
I'm not 100% sure, but are you sure setting |
I can't believe this is still open. |
@nathanleclaire I think you have to register the Dialer Type yourself: https://godoc.org/golang.org/x/net/proxy#RegisterDialerType Read more here and here: But I am also not sure and in the process of trying to setup a proxy for TCP dialers. HTTP client modifications are crazy easy: But using |
I think non-HTTP traffic pass through a http proxy is very normal |
If the
ALL_PROXY
environment variable is set to a non-SOCKS address it results in theproxy: unknown scheme: http
when it instead should ignore it.go version
)?go1.6.3 via docker
go env
)?windows/amd64
Have a http
ALL_PROXY
environment variable set and try to run Docker Toolbox, e.g.docker run hello-world
Docker should work fine, Go should ignore non-SOCKS
ALL_PROXY
environment variableDocker doesn't work because non-SOCKS
ALL_PROXY
environment variable is not ignored. The error can be traced back to https://github.com/golang/net/blob/master/proxy/proxy.go#L93.Workaround: Run
unset ALL_PROXY
when you get error.The text was updated successfully, but these errors were encountered: