mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 14:36:34 +08:00
实现WAF
This commit is contained in:
14
internal/waf/action_allow.go
Normal file
14
internal/waf/action_allow.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package waf
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type AllowAction struct {
|
||||
}
|
||||
|
||||
func (this *AllowAction) Perform(waf *WAF, request *requests.Request, writer http.ResponseWriter) (allow bool) {
|
||||
// do nothing
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user