mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
add zh_TW locale, rename ssl to tls
This commit is contained in:
@@ -38,7 +38,7 @@ type Notification struct {
|
||||
RequestType int `json:"request_type,omitempty"`
|
||||
RequestHeader string `json:"request_header,omitempty" gorm:"type:longtext"`
|
||||
RequestBody string `json:"request_body,omitempty" gorm:"type:longtext"`
|
||||
VerifySSL *bool `json:"verify_ssl,omitempty"`
|
||||
VerifyTLS *bool `json:"verify_tls,omitempty"`
|
||||
}
|
||||
|
||||
func (ns *NotificationServerBundle) reqURL(message string) string {
|
||||
@@ -111,7 +111,7 @@ func (n *Notification) setRequestHeader(req *http.Request) error {
|
||||
func (ns *NotificationServerBundle) Send(message string) error {
|
||||
var client *http.Client
|
||||
n := ns.Notification
|
||||
if n.VerifySSL != nil && *n.VerifySSL {
|
||||
if n.VerifyTLS != nil && *n.VerifyTLS {
|
||||
client = utils.HttpClient
|
||||
} else {
|
||||
client = utils.HttpClientSkipTlsVerify
|
||||
|
||||
Reference in New Issue
Block a user