WAF规则集中增加“允许搜索引擎”选项,可以快速允许搜索引擎访问

This commit is contained in:
刘祥超
2024-05-08 16:45:28 +08:00
parent f1b3a7463d
commit 731f213310
4 changed files with 78 additions and 27 deletions

View File

@@ -33,5 +33,8 @@ func TestNewManager(t *testing.T) {
t.Fatal(err)
}
t.Log(manager.LookupIP("192.168.3.100"))
t.Log(manager.LookupIP("192.168.3.100")) // not found
t.Log(manager.LookupIP("66.249.79.25")) // google
t.Log(manager.ContainsIP("66.249.79.25")) // true
t.Log(manager.ContainsIP("66.249.79.255")) // not found
}