From 547aecb3172c4bf4277f22958c08265a4e49c3dc Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 26 Nov 2022 15:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=BB=BB=E5=8A=A1=EF=BC=9A?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E7=BC=93=E5=AD=98Key=E6=97=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=9F=9F=E5=90=8D=E4=B8=AD=E5=90=AB=E6=9C=89=E6=98=9F?= =?UTF-8?q?=E5=8F=B7=E9=80=9A=E9=85=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/domain.go b/internal/utils/domain.go index 750e3340..ee098c8f 100644 --- a/internal/utils/domain.go +++ b/internal/utils/domain.go @@ -7,7 +7,7 @@ import ( "strings" ) -var cacheKeyDomainReg1 = regexp.MustCompile(`^(?i)(?:http|https)://([\w-.]+)`) +var cacheKeyDomainReg1 = regexp.MustCompile(`^(?i)(?:http|https)://([\w-.*]+)`) // 这里支持 *.example.com var cacheKeyDomainReg2 = regexp.MustCompile(`^([\w-.]+)`) // ParseDomainFromKey 从Key中获取域名