优化WAF黑名单处理

This commit is contained in:
刘祥超
2023-03-31 21:37:15 +08:00
parent 964524816f
commit d9fa3dcc3b
11 changed files with 157 additions and 84 deletions

View File

@@ -9,7 +9,7 @@ import (
func (this *HTTPRequest) doRequestLimit() (shouldStop bool) {
// 是否在全局名单中
_, isInAllowedList := iplibrary.AllowIP(this.RemoteAddr(), this.ReqServer.Id)
_, isInAllowedList, _ := iplibrary.AllowIP(this.RemoteAddr(), this.ReqServer.Id)
if isInAllowedList {
return false
}