Respect env proxy settings when using custom Transport

pull/3631/head
Greg Burton 7 years ago committed by Greg Burton
parent 369e44ad43
commit bf7e755ef3

@ -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