自动使用本地防火墙/增加edge-node [ip.drop|ip.reject|ip.remove]等命令

This commit is contained in:
GoEdgeLab
2022-01-09 17:07:37 +08:00
parent 9f4738af0d
commit 15fc2e4f41
17 changed files with 482 additions and 24 deletions

View File

@@ -33,9 +33,9 @@ func TestWAF_MatchRequest(t *testing.T) {
waf := NewWAF()
waf.AddRuleGroup(group)
err := waf.Init()
if err != nil {
t.Fatal(err)
errs := waf.Init()
if len(errs) > 0 {
t.Fatal(errs[0])
}
req, err := http.NewRequest(http.MethodGet, "http://teaos.cn/hello?name=lu&age=20", nil)