Added support for http proxy environment variables (#92)
authorpj42 <paulfourball@gmail.com>
Wed, 4 Jan 2017 10:26:29 +0000 (10:26 +0000)
committerBrian Brazil <brian-brazil@users.noreply.github.com>
Wed, 4 Jan 2017 10:26:29 +0000 (10:26 +0000)
http.go

diff --git a/http.go b/http.go
index 0a009f83a11e62e957141ebf0717950e707ea5d7..65e8d3c18fcb5fb1973b415378de31fb8a7d5149 100644 (file)
--- a/http.go
+++ b/http.go
@@ -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 {