From d124c9be180fe731f7e496a236c7784d1a7c01e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 29 Mar 2023 20:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_mismatch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/nodes/http_request_mismatch.go b/internal/nodes/http_request_mismatch.go index b3546e7..46866f2 100644 --- a/internal/nodes/http_request_mismatch.go +++ b/internal/nodes/http_request_mismatch.go @@ -35,6 +35,7 @@ func (this *HTTPRequest) doMismatch() { if sharedNodeConfig.GlobalServerConfig != nil && sharedNodeConfig.GlobalServerConfig.HTTPAll.MatchDomainStrictly { // 检查cc // TODO 可以在管理端配置是否开启以及最多尝试次数 + // 要考虑到服务在切换集群时,域名未生效状态时,用户访问的仍然是老集群中的节点,就会产生找不到域名的情况 if len(remoteIP) > 0 { const maxAttempts = 100 if ttlcache.SharedCache.IncreaseInt64("MISMATCH_DOMAIN:"+remoteIP, int64(1), time.Now().Unix()+60, false) > maxAttempts {