forked from TrueCloudLab/lego
Merge pull request #168 from JorritSalverda/patch-1
Updated timeout for cloudflare dns challenge
This commit is contained in:
commit
1469abcb0c
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ func (c *DNSProvider) makeRequest(method, uri string, body io.Reader) (json.RawM
|
||||||
req.Header.Set("X-Auth-Key", c.authKey)
|
req.Header.Set("X-Auth-Key", c.authKey)
|
||||||
//req.Header.Set("User-Agent", userAgent())
|
//req.Header.Set("User-Agent", userAgent())
|
||||||
|
|
||||||
client := http.Client{Timeout: 30 * time.Second}
|
client := http.Client{Timeout: 120 * time.Second}
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Error querying API -> %v", err)
|
return nil, fmt.Errorf("Error querying API -> %v", err)
|
||||||
|
|
Loading…
Reference in a new issue