projects
/
blackbox_exporter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1722550
)
Added support for http proxy environment variables (#92)
author
pj42
<paulfourball@gmail.com>
Wed, 4 Jan 2017 10:26:29 +0000
(10:26 +0000)
committer
Brian Brazil
<brian-brazil@users.noreply.github.com>
Wed, 4 Jan 2017 10:26:29 +0000
(10:26 +0000)
http.go
patch
|
blob
|
blame
|
history
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 {