CC: scripts/download.pl: Use CDN for kernel downloads
authorPetr Štetiar <ynezz@true.cz>
Sun, 22 Oct 2017 18:17:42 +0000 (20:17 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Sun, 22 Oct 2017 18:17:42 +0000 (20:17 +0200)
More info at https://www.kernel.org/introducing-fastly-cdn.html

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

index 484d34c..ea4e2c4 100755 (executable)
@@ -177,8 +177,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";