自动将同集群节点IP加入白名单/尝试使用本地防火墙提升黑名单连接封锁效率

This commit is contained in:
GoEdgeLab
2022-05-21 21:32:10 +08:00
parent b13fccc093
commit 0677923f98
4 changed files with 18 additions and 2 deletions

View File

@@ -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
}