mirror of
https://github.com/go-acme/lego.git
synced 2025-03-19 22:19:40 +02:00
refactor: replace Dial by DialContext. (#585)
This commit is contained in:
parent
54422ab226
commit
94e14328ab
@ -26,10 +26,10 @@ var (
|
||||
HTTPClient = http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
Dial: (&net.Dialer{
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
}).Dial,
|
||||
}).DialContext,
|
||||
TLSHandshakeTimeout: 15 * time.Second,
|
||||
ResponseHeaderTimeout: 15 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
|
Loading…
x
Reference in New Issue
Block a user