mirror of
https://github.com/go-acme/lego.git
synced 2025-03-18 05:38:01 +02:00
Use proxies from environment when making outbound http connections (#478)
Fixes #477
This commit is contained in:
parent
cc326ce155
commit
6bddbfd17a
@ -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…
x
Reference in New Issue
Block a user