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