fix gosec

This commit is contained in:
naiba committed 2023-10-21 18:13:38 +08:00
1 parent 106ebc6db3
commit 78cb02b886
2 files changed
+1 -4

No files matched your search

+1 -2
View File
@@ -117,9 +117,8 @@ func (ns *NotificationServerBundle) Send(message string) error {
verifySSL = true
}
/* #nosec */
transCfg := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec G402
}
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}