From 19a92f4b1f8baa69efd83d41f99c47b0217a4184 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 1 Aug 2023 19:50:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96CC=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_web_dao.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/db/models/http_web_dao.go b/internal/db/models/http_web_dao.go index 35f55b25..fe70141f 100644 --- a/internal/db/models/http_web_dao.go +++ b/internal/db/models/http_web_dao.go @@ -519,6 +519,14 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr } if this.shouldCompose(isLocationOrGroup, forNode, ccConfig.IsPrior, ccConfig.IsOn) { config.CC = ccConfig + + if forNode { + for index, threshold := range ccConfig.Thresholds { + if index < len(serverconfigs.DefaultHTTPCCThresholds) { + threshold.MergeIfEmpty(serverconfigs.DefaultHTTPCCThresholds[index]) + } + } + } } }