Skip to content

Commit

Permalink
exchanges/common: Respect HTTP_PROXY / HTTPS_PROXY (thrasher-corp#661)
Browse files Browse the repository at this point in the history
* Binance proxy

* better implementation

* better implementation
  • Loading branch information
yangrq1018 authored Apr 23, 2021
1 parent 7b71870 commit d106d09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d106d09

Please sign in to comment.