From 033a3a624dd032f1f92859947f58237ac154f49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 26 Mar 2023 12:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4CC=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= 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, 5 insertions(+) diff --git a/pkg/serverconfigs/http_cc_config.go b/pkg/serverconfigs/http_cc_config.go index d32a7f7..6ee22e6 100644 --- a/pkg/serverconfigs/http_cc_config.go +++ b/pkg/serverconfigs/http_cc_config.go @@ -3,6 +3,11 @@ package serverconfigs +// DefaultHTTPCCConfig 默认的CC配置 +func DefaultHTTPCCConfig() *HTTPCCConfig { + return &HTTPCCConfig{} +} + // HTTPCCConfig HTTP CC防护配置 type HTTPCCConfig struct { IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖父级