scripts: sources CDN as fallback in download.pl
authorPaul Spooren <mail@aparcar.org>
Wed, 27 Jan 2021 04:13:28 +0000 (18:13 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 28 Jan 2021 08:46:08 +0000 (22:46 -1000)
In case the default sources for a package fail use the CDN rather than
our own mirror. In case the CDN fails, fallback to our mirror.

Also remove mirror1 which isn't available anymore.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/download.pl

index 84d10dbe5f9daea410c33677ef8cb3b90160f3ae..61af0a04295d6cd054b2fb040e4a24695558df98 100755 (executable)
@@ -258,7 +258,7 @@ foreach my $mirror (@ARGV) {
        }
 }
 
-#push @mirrors, 'https://mirror1.openwrt.org';
+push @mirrors, 'https://sources.cdn.openwrt.org';
 push @mirrors, 'https://sources.openwrt.org';
 push @mirrors, 'https://mirror2.openwrt.org/sources';