From 08e010468b283947863c7dc532eebfda1ece0e05 Mon Sep 17 00:00:00 2001 From: Robin Verton Date: Wed, 5 Aug 2020 14:44:18 +0200 Subject: [PATCH] Add default proxy from environment Using `http.ProxyFromEnvironment` allows httprobe to use a proxy defined in `HTTP_PROXY` (and `HTTPS_PROXY`). --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 60e5004..3f6aae9 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,7 @@ func main() { Timeout: timeout, KeepAlive: time.Second, }).DialContext, + Proxy: http.ProxyFromEnvironment, } re := func(req *http.Request, via []*http.Request) error {