WAF有允许(allow)动作出现的时候不再继续往下执行

This commit is contained in:
GoEdgeLab
2022-02-26 17:13:27 +08:00
parent c6c74523db
commit 6984257224

View File

@@ -21,7 +21,7 @@ func (this *AllowAction) IsAttack() bool {
}
func (this *AllowAction) WillChange() bool {
return false
return true
}
func (this *AllowAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, request requests.Request, writer http.ResponseWriter) (allow bool) {