exchanges/common: Respect HTTP_PROXY / HTTPS_PROXY (#661)

* Binance proxy

* better implementation

* better implementation
This commit is contained in:
Rocky Yang
2021-04-23 13:17:10 +08:00
committed by GitHub
parent 7b718700f7
commit d106d091e6

View File

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