From b17f9464d9f202aab1ccc3e1de43b193b071b9e6 Mon Sep 17 00:00:00 2001 From: Yad Smood Date: Thu, 16 Apr 2020 18:52:19 +0900 Subject: [PATCH] fix http timeout issue --- server/cert/main.go | 1 + server/version.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/cert/main.go b/server/cert/main.go index 297b1f6..1155994 100644 --- a/server/cert/main.go +++ b/server/cert/main.go @@ -193,6 +193,7 @@ func (ctx *Context) getProvider() (challenge.Provider, error) { case "dnspod": conf := dnspod.NewDefaultConfig() conf.LoginToken = ctx.token + conf.HTTPClient.Timeout = 30 * time.Second return dnspod.NewDNSProviderConfig(conf) default: panic("provider not supported: " + ctx.providerName) diff --git a/server/version.go b/server/version.go index a8ff56c..757ce27 100644 --- a/server/version.go +++ b/server/version.go @@ -1,4 +1,4 @@ package server // Version ... -const Version = "v1.6.1" +const Version = "v1.6.2"