mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-05 07:05:49 +08:00
自动将同集群节点IP加入白名单/尝试使用本地防火墙提升黑名单连接封锁效率
This commit is contained in:
@@ -130,8 +130,8 @@ func (this *IPList) Contains(ipType string, scope firewallconfigs.FirewallScope,
|
||||
}
|
||||
|
||||
this.locker.RLock()
|
||||
defer this.locker.RUnlock()
|
||||
_, ok := this.ipMap[ip]
|
||||
this.locker.RUnlock()
|
||||
return ok
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user