From 9d99a0c3cde9354f185d229eb11fd16f09595f5e Mon Sep 17 00:00:00 2001 From: soulteary Date: Sun, 9 Oct 2022 23:37:12 +0800 Subject: [PATCH] chore: allow cache ubuntu mirror from ubuntu cdn --- linux/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/common.go b/linux/common.go index e315770..c86ec8e 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?://(security|archive).ubuntu.com/ubuntu/(.+)$`, + `https?://(\w+)?(security|archive).ubuntu.com/ubuntu/(.+)$`, ) var UBUNTU_DEFAULT_CACHE_RULES = []Rule{