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中获取域名