mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
improve
This commit is contained in:
1 parent
ea2dc290b5
commit
75210d87ca
5 files changed
+34
-21
No files matched your search
@@ -26,7 +26,9 @@ func (s *NezhaHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Rece
|
||||
var errMsg string
|
||||
if strings.HasPrefix(r.GetData(), "SSL证书错误:") {
|
||||
// 排除 i/o timeont、connection timeout、EOF 错误
|
||||
if !strings.HasSuffix(r.GetData(), "timeout") && r.GetData() != "EOF" {
|
||||
if !strings.HasSuffix(r.GetData(), "timeout") &&
|
||||
r.GetData() != "EOF" &&
|
||||
!strings.HasSuffix(r.GetData(), "timed out") {
|
||||
errMsg = r.GetData()
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user