From a86055ac44a165f7e0b9cc4f1dbf6ad5fbe10a4f Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 22 Nov 2022 18:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/firewalls/ddos_protection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/firewalls/ddos_protection.go b/internal/firewalls/ddos_protection.go index 118c3fa..203c7c7 100644 --- a/internal/firewalls/ddos_protection.go +++ b/internal/firewalls/ddos_protection.go @@ -70,7 +70,7 @@ func (this *DDoSProtectionManager) Apply(config *ddosconfigs.ProtectionConfig) e nodeConfig, _ := nodeconfigs.SharedNodeConfig() if nodeConfig != nil { var allowIPList = nodeConfig.AllowedIPs - if !utils.ContainsSameStrings(allowIPList, this.lastAllowIPList) { + if !utils.EqualStrings(allowIPList, this.lastAllowIPList) { allowIPListChanged = true this.lastAllowIPList = allowIPList }