mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-02-03 14:25:47 +08:00
修复WAF OnAction在并发时无法准确调用请求动作的Bug
This commit is contained in:
@@ -29,6 +29,9 @@ type Request interface {
|
||||
// WAFClose 关闭当前请求所在的连接
|
||||
WAFClose()
|
||||
|
||||
// WAFOnAction 动作回调
|
||||
WAFOnAction(action interface{}) (goNext bool)
|
||||
|
||||
// Format 格式化变量
|
||||
Format(string) string
|
||||
}
|
||||
|
||||
@@ -73,3 +73,7 @@ func (this *TestRequest) WAFClose() {
|
||||
func (this *TestRequest) Format(s string) string {
|
||||
return s
|
||||
}
|
||||
|
||||
func (this *TestRequest) WAFOnAction(action interface{}) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user