Respect env proxy settings when using custom Transport

pull/4207/head^2
Greg Burton 8 years ago committed by Greg Burton
parent fd0f8d1b28
commit 1381bc7431

@ -76,6 +76,7 @@ func newHTTPGetter(URL, CertFile, KeyFile, CAFile string) (Getter, error) {
client.client = &http.Client{ client.client = &http.Client{
Transport: &http.Transport{ Transport: &http.Transport{
TLSClientConfig: tlsConf, TLSClientConfig: tlsConf,
Proxy: http.ProxyFromEnvironment,
}, },
} }
} else { } else {

Loading…
Cancel
Save