1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add ProxyFromEnvironment enables client via proxy.

Signed-off-by: Anders Janmyr <anders@janmyr.com>
This commit is contained in:
Anders Janmyr 2015-01-07 12:57:24 +01:00
parent f65b781d21
commit 43d45e601f

View file

@ -155,6 +155,7 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, key libtrust.PrivateKey,
// The transport is created here for reuse during the client session // The transport is created here for reuse during the client session
tr := &http.Transport{ tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig, TLSClientConfig: tlsConfig,
} }