From 993f5d7c5e76278f346f7bc412551708eeef9e54 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 12 Dec 2021 16:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=A7=84=E5=88=99=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=93=E5=B1=9E=E5=9F=9F=E5=90=8D=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 277e2b9..d6f26b1 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -522,6 +522,11 @@ func (this *HTTPRequest) configureWeb(web *serverconfigs.HTTPWebConfig, isTop bo continue } if varMapping, isMatched := location.Match(rawPath, this.Format); isMatched { + // 检查专属域名 + if len(location.Domains) > 0 && !configutils.MatchDomains(location.Domains, this.Host) { + continue + } + if len(varMapping) > 0 { this.addVarMapping(varMapping) }