forked from TrueCloudLab/lego
Use proxies from environment when making outbound http connections (#478)
Fixes #477
This commit is contained in:
parent
cc326ce155
commit
6bddbfd17a
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue