Commit 8e646fe9 by Seefs Committed by GitHub

Merge pull request #2547 from wwalt1a/feat/support-proxy-env-vars

parents bd2f7750 e683a3ae
...@@ -38,6 +38,7 @@ func InitHttpClient() { ...@@ -38,6 +38,7 @@ func InitHttpClient() {
MaxIdleConns: common.RelayMaxIdleConns, MaxIdleConns: common.RelayMaxIdleConns,
MaxIdleConnsPerHost: common.RelayMaxIdleConnsPerHost, MaxIdleConnsPerHost: common.RelayMaxIdleConnsPerHost,
ForceAttemptHTTP2: true, ForceAttemptHTTP2: true,
Proxy: http.ProxyFromEnvironment, // Support HTTP_PROXY, HTTPS_PROXY, NO_PROXY env vars
} }
if common.RelayTimeout == 0 { if common.RelayTimeout == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment