make http transport aware of proxy from envvar

This commit is contained in:
Kane Dou 2018-12-28 17:01:16 +08:00
parent c69437ba83
commit fd50e45902
1 changed files with 1 additions and 0 deletions

View File

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