This commit is contained in:
naiba
2021-02-28 23:58:04 +08:00
parent dbf62991a5
commit 8f7346141a
6 changed files with 38 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import (
pb "github.com/naiba/nezha/proto"
)
var Version = "v0.4.10" // !!记得修改 README 重的 badge 版本!!
var Version = "v0.4.11" // !!记得修改 README 重的 badge 版本!!
const (
SnapshotDelay = 3
+1 -1
View File
@@ -26,7 +26,7 @@ func (s *NezhaHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Rece
var errMsg string
if strings.HasPrefix(r.GetData(), "SSL证书错误:") {
// 排除超时错误
if !strings.HasSuffix(r.GetData(), "i/o timeout") {
if !strings.HasSuffix(r.GetData(), "timeout") {
errMsg = r.GetData()
}
} else {