diff --git a/service/http_client.go b/service/http_client.go index be89c73c0..3ae6a6761 100644 --- a/service/http_client.go +++ b/service/http_client.go @@ -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 {