mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 18:50:27 +08:00
32 lines
587 B
Go
32 lines
587 B
Go
package waf
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
|
|
"net/http"
|
|
)
|
|
|
|
type AllowAction struct {
|
|
BaseAction
|
|
}
|
|
|
|
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 true
|
|
}
|
|
|
|
func (this *AllowAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, request requests.Request, writer http.ResponseWriter) (continueRequest bool, goNextSet bool) {
|
|
// do nothing
|
|
return true, false
|
|
}
|