MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / HasSpecialActions

Method HasSpecialActions

internal/waf/rule_set.go:130–137  ·  view source on GitHub ↗

HasSpecialActions 除了Allow之外是否还有别的动作

()

Source from the content-addressed store, hash-verified

128
129// HasSpecialActions 除了Allow之外是否还有别的动作
130func (this *RuleSet) HasSpecialActions() bool {
131 for _, action := range this.Actions {
132 if action.Code != ActionAllow {
133 return true
134 }
135 }
136 return false
137}
138
139// HasAttackActions 检查是否含有攻击防御动作
140func (this *RuleSet) HasAttackActions() bool {

Callers 2

checkWAFRequestMethod · 0.80
checkWAFResponseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected