mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix: field name "VerifySSL" to "SkipVerifySSL" in Transport config (#305)
This commit is contained in:
@@ -110,15 +110,9 @@ func (n *Notification) setRequestHeader(req *http.Request) error {
|
||||
}
|
||||
|
||||
func (ns *NotificationServerBundle) Send(message string) error {
|
||||
var verifySSL bool
|
||||
var client *http.Client
|
||||
n := ns.Notification
|
||||
if n.VerifySSL != nil && *n.VerifySSL {
|
||||
verifySSL = true
|
||||
}
|
||||
|
||||
var client *http.Client
|
||||
|
||||
if verifySSL {
|
||||
client = utils.HttpClient
|
||||
} else {
|
||||
client = utils.HttpClientSkipTlsVerify
|
||||
|
||||
Reference in New Issue
Block a user