From 6bddbfd17a6e1ab782617eeab2f2007c6550b160 Mon Sep 17 00:00:00 2001 From: "Philippe M. Chiasson" Date: Thu, 25 Jan 2018 11:10:08 -0500 Subject: [PATCH] Use proxies from environment when making outbound http connections (#478) Fixes #477 --- acme/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/http.go b/acme/http.go index fd6018a1..e469e0de 100644 --- a/acme/http.go +++ b/acme/http.go @@ -18,6 +18,7 @@ var UserAgent string // HTTPClient is an HTTP client with a reasonable timeout value. var HTTPClient = http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, Dial: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second,