Merge pull request #2547 from wwalt1a/feat/support-proxy-env-vars
This commit is contained in:
commit
8e646fe937
@ -38,6 +38,7 @@ func InitHttpClient() {
|
||||
MaxIdleConns: common.RelayMaxIdleConns,
|
||||
MaxIdleConnsPerHost: common.RelayMaxIdleConnsPerHost,
|
||||
ForceAttemptHTTP2: true,
|
||||
Proxy: http.ProxyFromEnvironment, // Support HTTP_PROXY, HTTPS_PROXY, NO_PROXY env vars
|
||||
}
|
||||
|
||||
if common.RelayTimeout == 0 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user