Skip to content

Commit

Permalink
Added support for http proxy environment variables (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
pj42 authored and brian-brazil committed Jan 4, 2017
1 parent 1722550 commit 1b3a6db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
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 1b3a6db

Please sign in to comment.