From fb176ade050647254432bac00fb919449fbc36f5 Mon Sep 17 00:00:00 2001 From: soulteary Date: Sun, 9 Oct 2022 23:39:38 +0800 Subject: [PATCH] fix: fix regexp for cdn subdomain --- linux/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/common.go b/linux/common.go index c86ec8e..dd3f69d 100644 --- a/linux/common.go +++ b/linux/common.go @@ -94,7 +94,7 @@ var BUILDIN_OFFICAL_UBUNTU_MIRRORS = []string{ } var UBUNTU_HOST_PATTERN = regexp.MustCompile( - `https?://(\w+)?(security|archive).ubuntu.com/ubuntu/(.+)$`, + `https?://(\w{2}\.)?(security|archive).ubuntu.com/ubuntu/(.+)$`, ) var UBUNTU_DEFAULT_CACHE_RULES = []Rule{