mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-06 10:41:21 +00:00
更加的严格waf判断的逻辑, 防止一些误报导致提前退出程序
This commit is contained in:
parent
6fa21cb6b4
commit
db58771f49
@ -111,9 +111,10 @@ func NewPool(ctx context.Context, config *pkg.Config) (*Pool, error) {
|
||||
logs.Log.Warn("[check.fuzzy] maybe trigger risk control, " + bl.String())
|
||||
}
|
||||
} else {
|
||||
pool.failedCount++
|
||||
logs.Log.Warn("[check.failed] maybe trigger risk control, " + bl.String())
|
||||
pool.failedBaselines = append(pool.failedBaselines, bl)
|
||||
}
|
||||
pool.failedBaselines = append(pool.failedBaselines, bl)
|
||||
} else {
|
||||
pool.resetFailed() // 如果后续访问正常, 重置错误次数
|
||||
logs.Log.Debug("[check.pass] " + bl.String())
|
||||
|
Loading…
x
Reference in New Issue
Block a user