mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-22 07:26:50 +00:00
exchanges/common: Respect HTTP_PROXY / HTTPS_PROXY (#661)
* Binance proxy * better implementation * better implementation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user