🐛 ssl证书忽略

This commit is contained in:
sugarBecomer
2025-11-07 14:59:40 +08:00
parent 1bc04c74f3
commit 07444f70df
+5 -5
View File
@@ -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")
}
}