Skip to content

Commit

Permalink
sso_*: use ProxyFromEnvironment in http Transport (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jusshersmith authored Jun 16, 2021
1 parent 290f27e commit f02c1fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/auth/providers/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
var httpClient = &http.Client{
Timeout: time.Second * 5,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{
Timeout: 2 * time.Second,
}).Dial,
Expand Down
1 change: 1 addition & 0 deletions internal/proxy/providers/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
var httpClient = &http.Client{
Timeout: time.Second * 5,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{
Timeout: 2 * time.Second,
}).Dial,
Expand Down

0 comments on commit f02c1fc

Please sign in to comment.