From 5a13c7663c5d6f87d0b2d035ba41fa02b9d5376b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 6 Aug 2021 14:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DHTTPFirewallPolicyService.Che?= =?UTF-8?q?ckHTTPFirewallPolicyIPStatus()=E5=8F=AF=E8=83=BDpanic=E7=9A=84B?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/services/service_http_firewall_policy.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/rpc/services/service_http_firewall_policy.go b/internal/rpc/services/service_http_firewall_policy.go index 1a62ce2b..f62aa645 100644 --- a/internal/rpc/services/service_http_firewall_policy.go +++ b/internal/rpc/services/service_http_firewall_policy.go @@ -720,10 +720,9 @@ func (this *HTTPFirewallPolicyService) CheckHTTPFirewallPolicyIPStatus(ctx conte // 检查黑名单 if firewallPolicy.Inbound != nil && firewallPolicy.Inbound.IsOn && - firewallPolicy.Inbound.AllowListRef != nil && - firewallPolicy.Inbound.AllowListRef.IsOn && - firewallPolicy.Inbound.AllowListRef.ListId > 0 { - + firewallPolicy.Inbound.DenyListRef != nil && + firewallPolicy.Inbound.DenyListRef.IsOn && + firewallPolicy.Inbound.DenyListRef.ListId > 0 { var listIds = []int64{} if firewallPolicy.Inbound.DenyListRef.ListId > 0 { listIds = append(listIds, firewallPolicy.Inbound.DenyListRef.ListId)