From: pj42 Date: Wed, 4 Jan 2017 10:26:29 +0000 (+0000) Subject: Added support for http proxy environment variables (#92) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b3a6db3c07f29b59a17a2c09b4703db3e6a3f06;p=blackbox_exporter.git Added support for http proxy environment variables (#92) --- diff --git a/http.go b/http.go index 0a009f8..65e8d3c 100644 --- 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 {