From 5e1cd029e89a8ee0d96260dd4d179204d9098228 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 8 May 2024 16:43:27 +0800 Subject: [PATCH] =?UTF-8?q?WAF=E8=A7=84=E5=88=99=E9=9B=86=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E2=80=9C=E5=85=81=E8=AE=B8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E2=80=9D=E9=80=89=E9=A1=B9=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=BF=AB=E9=80=9F=E5=85=81=E8=AE=B8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../firewallconfigs/http_firewall_rule_set.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkg/serverconfigs/firewallconfigs/http_firewall_rule_set.go b/pkg/serverconfigs/firewallconfigs/http_firewall_rule_set.go index be2e083..804d820 100644 --- a/pkg/serverconfigs/firewallconfigs/http_firewall_rule_set.go +++ b/pkg/serverconfigs/firewallconfigs/http_firewall_rule_set.go @@ -13,15 +13,16 @@ type HTTPFirewallActionConfig struct { // HTTPFirewallRuleSet 规则集定义 type HTTPFirewallRuleSet struct { - Id int64 `yaml:"id" json:"id"` - IsOn bool `yaml:"isOn" json:"isOn"` - Name string `yaml:"name" json:"name"` - Code string `yaml:"code" json:"code"` - Description string `yaml:"description" json:"description"` - Connector string `yaml:"connector" json:"connector"` - RuleRefs []*HTTPFirewallRuleRef `yaml:"ruleRefs" json:"ruleRefs"` - Rules []*HTTPFirewallRule `yaml:"rules" json:"rules"` - IgnoreLocal bool `yaml:"ignoreLocal" json:"ignoreLocal"` + Id int64 `yaml:"id" json:"id"` + IsOn bool `yaml:"isOn" json:"isOn"` + Name string `yaml:"name" json:"name"` + Code string `yaml:"code" json:"code"` + Description string `yaml:"description" json:"description"` + Connector string `yaml:"connector" json:"connector"` + RuleRefs []*HTTPFirewallRuleRef `yaml:"ruleRefs" json:"ruleRefs"` + Rules []*HTTPFirewallRule `yaml:"rules" json:"rules"` + IgnoreLocal bool `yaml:"ignoreLocal" json:"ignoreLocal"` + IgnoreSearchEngine bool `yaml:"ignoreSearchEngine" json:"ignoreSearchEngine"` Actions []*HTTPFirewallActionConfig `yaml:"actions" json:"actions"`