From f1aa07eb3d324890f912ce699925b030671ecf58 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 20 Apr 2017 13:29:27 +0200 Subject: [PATCH] passive true activated passive mode for downloading, cause i got the error: illegal port command --- src/functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.pl b/src/functions.pl index 3a666b7..30872ab 100644 --- a/src/functions.pl +++ b/src/functions.pl @@ -408,7 +408,7 @@ sub mbz_raw_download { # find out the latest NGS my $latest = ""; print "Logging into MusicBrainz FTP ($host)...\n"; - my $ftp = Net::FTP->new($host, Timeout => 60) + my $ftp = Net::FTP->new($host, Timeout => 60, Passive => 1) or die "Cannot contact $host: $!"; $ftp->login('anonymous') or die "Can't login ($host): " . $ftp->message; $ftp->cwd('/pub/musicbrainz/data/fullexport/')