mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-30 12:20:25 +08:00
WAF策略中增加验证码相关定制设置
This commit is contained in:
@@ -11,6 +11,12 @@ type ActionInterface interface {
|
||||
// Init 初始化
|
||||
Init(waf *WAF) error
|
||||
|
||||
// ActionId 读取ActionId
|
||||
ActionId() int64
|
||||
|
||||
// SetActionId 设置ID
|
||||
SetActionId(id int64)
|
||||
|
||||
// Code 代号
|
||||
Code() string
|
||||
|
||||
@@ -20,6 +26,6 @@ type ActionInterface interface {
|
||||
// WillChange determine if the action will change the request
|
||||
WillChange() bool
|
||||
|
||||
// Perform perform the action
|
||||
// Perform the action
|
||||
Perform(waf *WAF, group *RuleGroup, set *RuleSet, request requests.Request, writer http.ResponseWriter) (allow bool)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user