修复绑定的IP名单无法生效的Bug

This commit is contained in:
GoEdgeLab
2021-07-13 15:50:02 +08:00
parent 8ef3592381
commit 77cb962103

View File

@@ -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...)
}