From 36f9effbf2b8c12c8c5af39fac3fe440eb86baa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 21 Oct 2021 09:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86IP=E5=90=8D=E5=8D=95=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E6=94=B9=E4=B8=BAglobal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/waf/ip_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/waf/ip_list.go b/internal/waf/ip_list.go index 56d43d8..7fb0747 100644 --- a/internal/waf/ip_list.go +++ b/internal/waf/ip_list.go @@ -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()