From 0094964b3e194280ffc3c473831bbbbe270b022c Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Mon, 15 Mar 2021 11:19:22 +0800 Subject: [PATCH] scripts/download.pl: add global mirror for mainland China users Signed-off-by: Tianling Shen --- scripts/download.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/download.pl b/scripts/download.pl index 1bc639b384..5de40ccb71 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -220,6 +220,7 @@ foreach my $mirror (@ARGV) { # replace the 2nd '/' with '@' for jsDelivr mirror push @mirrors, "https://cdn.jsdelivr.net/gh/". $dir =~ s{\/}{++$i == 2 ? '@' : $&}ger; push @mirrors, "https://raw.sevencdn.com/$dir"; + push @mirrors, "https://raw.fastgit.org/$dir"; # give github a few more tries (different mirrors) for (1 .. 5) { push @mirrors, "https://raw.githubusercontent.com/$dir"; @@ -279,6 +280,7 @@ foreach my $mirror (@ARGV) { } } +unshift @mirrors, "http://182.140.223.146"; push @mirrors, 'https://sources.cdn.openwrt.org'; push @mirrors, 'https://sources.openwrt.org'; push @mirrors, 'https://mirror2.openwrt.org/sources';