From 77cb962103c963088c6972165ef22512de6584c9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 13 Jul 2021 15:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=91=E5=AE=9A=E7=9A=84IP?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E6=97=A0=E6=B3=95=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../firewallconfigs/http_firewall_inbound_config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/serverconfigs/firewallconfigs/http_firewall_inbound_config.go b/pkg/serverconfigs/firewallconfigs/http_firewall_inbound_config.go index 6611b75..7003cfd 100644 --- a/pkg/serverconfigs/firewallconfigs/http_firewall_inbound_config.go +++ b/pkg/serverconfigs/firewallconfigs/http_firewall_inbound_config.go @@ -1,6 +1,8 @@ package firewallconfigs -import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ipconfigs" +import ( + "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ipconfigs" +) // HTTPFirewallInboundConfig HTTP防火墙入口配置 type HTTPFirewallInboundConfig struct { @@ -52,7 +54,7 @@ func (this *HTTPFirewallInboundConfig) Init() error { if this.DenyListRef != nil { this.allDenyListRefs = append(this.allDenyListRefs, this.DenyListRef) } - if len(this.PublicAllowListRefs) > 0 { + if len(this.PublicDenyListRefs) > 0 { this.allDenyListRefs = append(this.allDenyListRefs, this.PublicDenyListRefs...) }