From f168d24c65f4218732dac13ca5f64dfb1a40a709 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 2 Aug 2023 17:02:55 +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 --- pkg/serverconfigs/http_cc_config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/serverconfigs/http_cc_config.go b/pkg/serverconfigs/http_cc_config.go index c90cbbf..459a848 100644 --- a/pkg/serverconfigs/http_cc_config.go +++ b/pkg/serverconfigs/http_cc_config.go @@ -32,8 +32,9 @@ func DefaultHTTPCCConfig() *HTTPCCConfig { // HTTPCCConfig HTTP CC防护配置 type HTTPCCConfig struct { - IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖父级 - IsOn bool `yaml:"isOn" json:"isOn"` // 是否启用 + IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖父级 + IsOn bool `yaml:"isOn" json:"isOn"` // 是否启用 + Thresholds []*HTTPCCThreshold `yaml:"thresholds" json:"thresholds"` // 阈值设置 } func NewHTTPCCConfig() *HTTPCCConfig {