Skip to content

Commit

Permalink
feat(scw): allow usage of http proxy (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptobioz committed Aug 1, 2023
1 parent 655c909 commit a7e6dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scw/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ func newHTTPClient() *http.Client {
return &http.Client{
Timeout: 30 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{Timeout: 5 * time.Second}).DialContext,
TLSHandshakeTimeout: 5 * time.Second,
ResponseHeaderTimeout: 30 * time.Second,
Expand Down

0 comments on commit a7e6dd2

Please sign in to comment.