scripts/download.pl: Use CDN for kernel downloads
authorPetr Štetiar <ynezz@true.cz>
Mon, 23 May 2016 10:55:01 +0000 (12:55 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 23 May 2016 11:39:50 +0000 (13:39 +0200)
More info at https://www.kernel.org/introducing-fastly-cdn.html

Signed-off-by: Petr Štetiar <ynezz@true.cz>
scripts/download.pl

index 548eb7a14f2c1442705e8dd71a3db560aa67ffb3..c31d9bd83fa882b19f506ab08e49c3b6d5c8a356 100755 (executable)
@@ -207,8 +207,8 @@ foreach my $mirror (@ARGV) {
                        push @extra, "$extra[0]/longterm/v$1";
                }               
                foreach my $dir (@extra) {
-                       push @mirrors, "https://kernel.org/pub/$dir";
-                       push @mirrors, "ftp://kernel.org/pub/$dir";
+                       push @mirrors, "https://cdn.kernel.org/pub/$dir";
+                       push @mirrors, "https://www.kernel.org/pub/$dir";
                }
     } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
                push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";