-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Add ProxyFromEnvironment enables client via proxy. #9951
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
Add ProxyFromEnvironment enables client via proxy. #9951
Conversation
can you please go fmt the files with |
Signed-off-by: Anders Janmyr <anders@janmyr.com>
08c438b
to
43d45e6
Compare
Ok, done! Sorry about that, I'll add it to my git hook. |
LGTM |
1 similar comment
LGTM |
…-to-client Add ProxyFromEnvironment enables client via proxy.
@jfrazelle @andersjanmyr @crosbymichael It seems something wrong because of this PR or am I missing something.I set up |
Someone else reported the 404 error using master in #10224 (comment) Could be a user error, but thought I'd mention it here as well |
Sorry for my previous comment; I just saw the extra notes in the documentation (https://github.com/docker/docker/pull/10192/files) covering that case. |
Enables
http.ProxyFromEnvironment
as done inhttp.DefaultTransport
.It allows a client to connect to a server through a proxy with
http_proxy
environment variables setas described in the source code: https://golang.org/src/net/http/transport.go, line 34
Fixes #8751
Signed-off-by: Anders Janmyr anders@janmyr.com