mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 22:46:34 +08:00
WAF增加多个动作
This commit is contained in:
@@ -8,7 +8,23 @@ import (
|
||||
type AllowAction struct {
|
||||
}
|
||||
|
||||
func (this *AllowAction) Perform(waf *WAF, request *requests.Request, writer http.ResponseWriter) (allow bool) {
|
||||
func (this *AllowAction) Init(waf *WAF) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *AllowAction) Code() string {
|
||||
return ActionAllow
|
||||
}
|
||||
|
||||
func (this *AllowAction) IsAttack() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (this *AllowAction) WillChange() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (this *AllowAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, request requests.Request, writer http.ResponseWriter) (allow bool) {
|
||||
// do nothing
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user