mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -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
|
verifySSL = true
|
||||||
}
|
}
|
||||||
|
|
||||||
/* #nosec */
|
|
||||||
transCfg := &http.Transport{
|
transCfg := &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec G402
|
||||||
}
|
}
|
||||||
|
|
||||||
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}
|
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package singleton
|
package singleton
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// #nosec
|
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"sync"
|
"sync"
|
||||||
|
Loading…
Reference in New Issue
Block a user