Respect env proxy settings when using custom Transport

pull/4207/head
Greg Burton 8 years ago committed by Sebastien Plisson
parent 16413fc42c
commit a3ebefd710

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

Loading…
Cancel
Save