summaryrefslogtreecommitdiffstats
path: root/perl-install/ftp.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ftp.pm')
-rw-r--r--perl-install/ftp.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index bfabc5abf..bef562dad 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -27,8 +27,8 @@ sub fromEnv() {
sub new {
my ($host, $prefix, $login, $password) = @_;
- my @l = do { if ($hosts{$host}) {
- @{$hosts{$host}};
+ my @l = do { if ($hosts{"$host$prefix"}) {
+ @{$hosts{"$host$prefix"}};
} else {
my %options = (Passive => 1);
$options{Firewall} = $ENV{PROXY} if $ENV{PROXY};
@@ -44,7 +44,7 @@ sub new {
$ftp->cwd($prefix);
my @l = ($ftp, \ (my $retr = undef));
- $hosts{$host} = \@l;
+ $hosts{"$host$prefix"} = \@l;
@l;
}};
wantarray ? @l : $l[0];