mirror of https://github.com/docker/docs.git
Merge pull request #625 from databus23/b2d_proxy_env
respect proxy settings for b2d downloads
This commit is contained in:
commit
46ea081f70
|
|
@ -22,7 +22,9 @@ func defaultTimeout(network, addr string) (net.Conn, error) {
|
|||
|
||||
func getClient() *http.Client {
|
||||
transport := http.Transport{
|
||||
Dial: defaultTimeout,
|
||||
DisableKeepAlives: true,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
Dial: defaultTimeout,
|
||||
}
|
||||
|
||||
client := http.Client{
|
||||
|
|
|
|||
Loading…
Reference in New Issue