Respect env proxy settings when using custom Transport

This commit is contained in:
Greg Burton 2018-03-07 15:40:31 -08:00 committed by Greg Burton
parent 369e44ad43
commit bf7e755ef3

View file

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