download.pl: add more mirrors for SourceForge

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
AmadeusGhost 2021-06-17 01:19:53 +08:00 committed by Tianling Shen
parent 0397f2d0c6
commit 76b990208f
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -190,6 +190,8 @@ sub cleanup
foreach my $mirror (@ARGV) {
if ($mirror =~ /^\@SF\/(.+)$/) {
push @mirrors, "https://freefr.dl.sourceforge.net/$1";
push @mirrors, "https://netix.dl.sourceforge.net/$1";
# give sourceforge a few more tries, because it redirects to different mirrors
for (1 .. 5) {
push @mirrors, "https://downloads.sourceforge.net/$1";