diff --git a/internal/application/httpclient/cpdaily.go b/internal/application/httpclient/cpdaily.go index 001800d..65dd7a2 100644 --- a/internal/application/httpclient/cpdaily.go +++ b/internal/application/httpclient/cpdaily.go @@ -11,15 +11,15 @@ import ( var Cpdaily = resty.New(). SetCookieJar(nil). SetTimeout(30 * time.Second). - SetDoNotParseResponse(true) + SetDoNotParseResponse(true). + SetTLSClientConfig(&tls.Config{ + InsecureSkipVerify: true, + }) func init() { if !utils.IsDebug() { Cpdaily.SetDebug(false) } else { - Cpdaily.SetProxy("http://127.0.0.1:9000"). - SetTLSClientConfig(&tls.Config{ - InsecureSkipVerify: true, - }) + Cpdaily.SetProxy("http://127.0.0.1:9000") } }