💚 #nosec

This commit is contained in:
naiba 2021-09-04 12:54:05 +08:00
parent bb55c3354a
commit ac3cfa162c

View File

@ -80,9 +80,11 @@ func (n *Notification) Send(message string) error {
verifySSL = true
}
/* #nosec */
transCfg := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
}
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}
reqBody, err := n.reqBody(message)