mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-03 22:06:37 +08:00
将IP名单默认范围改为global
This commit is contained in:
@@ -52,7 +52,7 @@ func (this *IPList) Add(ipType string, scope firewallconfigs.FirewallScope, serv
|
||||
case firewallconfigs.FirewallScopeService:
|
||||
ip = types.String(serverId) + "@" + ip + "@" + ipType
|
||||
default:
|
||||
ip = types.String(serverId) + "@" + ip + "@" + ipType
|
||||
ip = "*@" + ip + "@" + ipType
|
||||
}
|
||||
|
||||
var id = this.nextId()
|
||||
@@ -71,7 +71,7 @@ func (this *IPList) Contains(ipType string, scope firewallconfigs.FirewallScope,
|
||||
case firewallconfigs.FirewallScopeService:
|
||||
ip = types.String(serverId) + "@" + ip + "@" + ipType
|
||||
default:
|
||||
ip = types.String(serverId) + "@" + ip + "@" + ipType
|
||||
ip = "*@" + ip + "@" + ipType
|
||||
}
|
||||
|
||||
this.locker.RLock()
|
||||
|
||||
Reference in New Issue
Block a user