From fdc8f782294c4e50fe237abe0ba39efd5ffc42b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= 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]) + } + } + } } }