[LEDE-DEV] [PATCH] scripts/download.pl: Use CDN for kernel downloads
Bjørn Mork
bjorn at mork.no
Mon May 23 01:29:09 PDT 2016
Petr Štetiar <ynezz at true.cz> writes:
> More info at https://www.kernel.org/introducing-fastly-cdn.html
>
> Signed-off-by: Petr Štetiar <ynezz at true.cz>
> ---
> scripts/download.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/download.pl b/scripts/download.pl
> index 548eb7a..ec7067b 100755
> --- a/scripts/download.pl
> +++ b/scripts/download.pl
> @@ -207,7 +207,7 @@ foreach my $mirror (@ARGV) {
> push @extra, "$extra[0]/longterm/v$1";
> }
> foreach my $dir (@extra) {
> - push @mirrors, "https://kernel.org/pub/$dir";
> + push @mirrors, "https://cdn.kernel.org/pub/$dir";
> push @mirrors, "ftp://kernel.org/pub/$dir";
> }
> } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
Not sure that is a good idea at this point. At least here, kernel.org
has IPv6 AAAA records while cdn.kernel.org does not:
bjorn at canardo:~$ host kernel.org
kernel.org has address 198.145.20.140
kernel.org has address 199.204.44.194
kernel.org has address 149.20.4.69
kernel.org has IPv6 address 2620:3:c000:a:0:1991:8:25
kernel.org has IPv6 address 2001:4f8:1:10:0:1991:8:25
kernel.org mail is handled by 30 ns2.kernel.org.
kernel.org mail is handled by 30 ns4.kernel.org.
kernel.org mail is handled by 10 mail.kernel.org.
kernel.org mail is handled by 999 bl-ckh-le.kernel.org.
bjorn at canardo:~$ host cdn.kernel.org
cdn.kernel.org is an alias for k.global-ssl.fastly.net.
k.global-ssl.fastly.net has address 185.31.17.69
Bjørn
More information about the Lede-dev
mailing list