make http transport aware of proxy from envvar

This commit is contained in:
Kane Dou
2018-12-28 17:01:16 +08:00
committed by Silver
parent 99713e3439
commit 15d68a0eed

View File

@@ -39,6 +39,7 @@ func NewUpstreamHTTPS(endpoint string) (Upstream, error) {
TLSClientConfig: tls,
DisableCompression: true,
MaxIdleConns: 1,
Proxy: http.ProxyFromEnvironment,
}
http2.ConfigureTransport(transport)