scripts/download.pl: add global mirror for mainland China users

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-03-15 11:19:22 +08:00
parent 46a3868904
commit 0094964b3e
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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';