mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
fix gosec
This commit is contained in:
parent
ce530705e7
commit
014abbc41e
@ -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}
|
||||
|
@ -1,8 +1,6 @@
|
||||
package singleton
|
||||
|
||||
import (
|
||||
// #nosec
|
||||
|
||||
"fmt"
|
||||
"log"
|
||||
"sync"
|
||||
|
Loading…
Reference in New Issue
Block a user