Block动作增加默认时间60秒

This commit is contained in:
刘祥超
2021-09-29 09:19:45 +08:00
parent 8d28ba3426
commit a1aa2b9224
7 changed files with 34 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ func (this *RecordIPAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, re
if this.Type == "black" {
_ = this.CloseConn(writer)
SharedIPBlackLIst.Add(IPTypeAll, request.WAFRemoteIP(), expiredAt)
SharedIPBlackList.Add(IPTypeAll, request.WAFRemoteIP(), expiredAt)
} else {
// 加入本地白名单
timeout := this.Timeout