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

This commit is contained in:
Seefs
2026-01-03 09:35:51 +08:00
committed by GitHub

View File

@@ -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 {