mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-05 14:45:20 +08:00
WAF规则校验错误不阻断执行
This commit is contained in:
@@ -232,3 +232,12 @@ var AllRuleOperators = []*RuleOperatorDefinition{
|
||||
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
||||
},
|
||||
}
|
||||
|
||||
func FindRuleOperatorName(code string) string {
|
||||
for _, operator := range AllRuleOperators {
|
||||
if operator.Code == code {
|
||||
return operator.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user