From d106d091e61c3640aaf475ffa1c045cc8b131371 Mon Sep 17 00:00:00 2001 From: Rocky Yang Date: Fri, 23 Apr 2021 13:17:10 +0800 Subject: [PATCH] exchanges/common: Respect HTTP_PROXY / HTTPS_PROXY (#661) * Binance proxy * better implementation * better implementation --- common/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/common.go b/common/common.go index 80377873..7551a9ef 100644 --- a/common/common.go +++ b/common/common.go @@ -64,6 +64,7 @@ func NewHTTPClientWithTimeout(t time.Duration) *http.Client { // could potentially slow macOS reconnection when there is a sudden // network disconnection/issue IdleConnTimeout: t, + Proxy: http.ProxyFromEnvironment, } h := &http.Client{ Transport: tr,