mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
✅ gosec
This commit is contained in:
@@ -81,7 +81,7 @@ func (n *Notification) Send(message string) error {
|
||||
}
|
||||
|
||||
transCfg := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec
|
||||
}
|
||||
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}
|
||||
|
||||
|
||||
@@ -43,6 +43,5 @@ func (s Server) Marshal() template.JS {
|
||||
tag, _ := json.Marshal(s.Tag)
|
||||
note, _ := json.Marshal(s.Note)
|
||||
secret, _ := json.Marshal(s.Secret)
|
||||
return template.JS(fmt.Sprintf(`{"ID":%d,"Name":%s,"Secret":%s,"DisplayIndex":%d,"Tag":%s,"Note":%s}`,
|
||||
s.ID, name, secret, s.DisplayIndex, tag, note))
|
||||
return template.JS(fmt.Sprintf(`{"ID":%d,"Name":%s,"Secret":%s,"DisplayIndex":%d,"Tag":%s,"Note":%s}`, s.ID, name, secret, s.DisplayIndex, tag, note)) // #nosec
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user