From 2eb4adca59c140dca2983d7d4957899e718a07b2 Mon Sep 17 00:00:00 2001 From: Jorrit Salverda Date: Wed, 23 Mar 2016 22:38:12 +0100 Subject: [PATCH] Updated timeout for cloudflare dns challenge Updated timeout for cloudflare dns challenge record propagation to fix issue as described in https://github.com/xenolf/lego/issues/167 --- providers/dns/cloudflare/cloudflare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/dns/cloudflare/cloudflare.go b/providers/dns/cloudflare/cloudflare.go index d0067e22..f1d247c8 100644 --- a/providers/dns/cloudflare/cloudflare.go +++ b/providers/dns/cloudflare/cloudflare.go @@ -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("User-Agent", userAgent()) - client := http.Client{Timeout: 30 * time.Second} + client := http.Client{Timeout: 120 * time.Second} resp, err := client.Do(req) if err != nil { return nil, fmt.Errorf("Error querying API -> %v", err)