Skip to content

Commit

Permalink
Added support for http proxy environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pj42 committed Dec 29, 2016
1 parent 1722550 commit a07d586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func probeHTTP(target string, w http.ResponseWriter, module Module) (success boo
client.Transport = &http.Transport{
TLSClientConfig: tlsconfig,
Dial: dial,
Proxy: http.ProxyFromEnvironment,
}

client.CheckRedirect = func(_ *http.Request, via []*http.Request) error {
Expand Down

0 comments on commit a07d586

Please sign in to comment.