优化代码/商业版支持L2节点

This commit is contained in:
刘祥超
2022-04-04 12:06:53 +08:00
parent d7ec36b12c
commit 6998d3468b
10 changed files with 242 additions and 149 deletions

View File

@@ -24,7 +24,7 @@ func (this *HTTPRequest) doWAFRequest() (blocked bool) {
var remoteAddr = this.requestRemoteAddr(true)
// 检查是否为白名单直连
if !Tea.IsTesting() && sharedNodeConfig.IPIsAutoAllowed(remoteAddr) {
if !Tea.IsTesting() && this.nodeConfig.IPIsAutoAllowed(remoteAddr) {
return
}