From bd84bf86f0c11f0d338fcd3770b1efb4a70f9a4d Mon Sep 17 00:00:00 2001 From: zu1k Date: Tue, 24 May 2022 13:58:40 +0800 Subject: [PATCH] misc: Add cdn backup link Signed-off-by: zu1k --- pkg/cdn/update.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cdn/update.go b/pkg/cdn/update.go index ffac859..dbfd9db 100644 --- a/pkg/cdn/update.go +++ b/pkg/cdn/update.go @@ -9,10 +9,13 @@ import ( const ( githubUrl = "https://raw.githubusercontent.com/SukkaLab/cdn/master/src/cdn.yml" jsdelivrUrl = "https://cdn.jsdelivr.net/gh/SukkaLab/cdn/src/cdn.yml" + + githubUrl2 = "https://raw.githubusercontent.com/4ft35t/cdn/master/src/cdn.yml" + jsdelivrUrl2 = "https://cdn.jsdelivr.net/gh/4ft35t/cdn/src/cdn.yml" ) func Download(filePath ...string) (data []byte, err error) { - data, err = common.GetHttpClient().Get(jsdelivrUrl, githubUrl) + data, err = common.GetHttpClient().Get(jsdelivrUrl, githubUrl, jsdelivrUrl2, githubUrl2) if err != nil { log.Printf("CDN数据库下载失败,请手动下载解压后保存到本地: %s \n", filePath) log.Println("下载链接:", githubUrl)