Skip to content

Commit

Permalink
scripts: Add GNU ftp mirror redirector for GNU and Savannah
Browse files Browse the repository at this point in the history
Add GNU's redirector which automatically redirect user to nearby online
mirror.

Signed-off-by: Sahil Dhiman <[email protected]>
Link: openwrt/openwrt#15557
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
Sahil Dhiman authored and robimarko committed May 29, 2024
1 parent 6f22447 commit 6510eb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/download.pl
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ sub cleanup
push @mirrors, "https://raw.githubusercontent.com/$1";
}
} elsif ($mirror =~ /^\@GNU\/(.+)$/) {
push @mirrors, "https://ftpmirror.gnu.org/$1";
push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1";
push @mirrors, "https://mirror.netcologne.de/gnu/$1";
push @mirrors, "https://ftp.kddilabs.jp/GNU/gnu/$1";
Expand All @@ -282,6 +283,7 @@ sub cleanup
push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/gnu/$1";
push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1";
} elsif ($mirror =~ /^\@SAVANNAH\/(.+)$/) {
push @mirrors, "https://download.savannah.nongnu.org/releases/$1";
push @mirrors, "https://mirror.netcologne.de/savannah/$1";
push @mirrors, "https://mirror.csclub.uwaterloo.ca/nongnu/$1";
push @mirrors, "https://ftp.acc.umu.se/mirror/gnu.org/savannah/$1";
Expand Down

0 comments on commit 6510eb3

Please sign in to comment.