mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
🐛 fix: 修复一直报警SSL证书问题
This commit is contained in:
1 parent
4118b57e2c
commit
031b3d4068
3 files changed
+9
-2
No files matched your search
@@ -30,9 +30,10 @@ func (s *NezhaHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Rece
|
||||
// 证书错误提醒
|
||||
errMsg = r.GetData()
|
||||
} else {
|
||||
var oldSSLCert = strings.Split(last.Data, "|")
|
||||
var splits = strings.Split(r.GetData(), "|")
|
||||
// 证书变更提醒
|
||||
if last.Data != "" && last.Data != splits[0] {
|
||||
if last.Data != "" && oldSSLCert[0] != splits[0] {
|
||||
errMsg = fmt.Sprintf(
|
||||
"SSL证书变更,旧:%s,新:%s。",
|
||||
last.Data, splits[0])
|
||||
|
||||
Reference in new issue
Block a user