Skip to content

Commit

Permalink
fix: use HTTP proxy envars
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Oct 10, 2022
1 parent 3981657 commit a39d5aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func Main(config Config) {
config.HTTP = func(config HTTPTransportConfig) *http.Client {
transport := &http.Transport{
ResponseHeaderTimeout: config.ResponseHeaderTimeout,
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: config.DialTimeout,
KeepAlive: config.KeepAlive,
Expand Down

0 comments on commit a39d5aa

Please sign in to comment.