mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Add port substitution for FTP to tests.
This commit is contained in:
parent
068991e8a0
commit
baf9994402
@ -1,3 +1,8 @@
|
|||||||
|
2010-02-25 Steven Schubiger <stsc@member.fsf.org>
|
||||||
|
|
||||||
|
* FTPServer.pm (FTPServer::new): Substitute port placeholders
|
||||||
|
in content of files to be retrieved via FTP.
|
||||||
|
|
||||||
2009-10-14 Steven Schubiger <stsc@member.fsf.org>
|
2009-10-14 Steven Schubiger <stsc@member.fsf.org>
|
||||||
|
|
||||||
* Test-E-k-K.px, Test-cookies-401.px, Test-ftp-bad-list.px,
|
* Test-E-k-K.px, Test-cookies-401.px, Test-ftp-bad-list.px,
|
||||||
|
@ -489,6 +489,12 @@ sub new {
|
|||||||
Proto => 'tcp',
|
Proto => 'tcp',
|
||||||
Type => SOCK_STREAM)
|
Type => SOCK_STREAM)
|
||||||
or die "bind: $!";
|
or die "bind: $!";
|
||||||
|
|
||||||
|
foreach my $file (keys %{$self->{_input}}) {
|
||||||
|
my $ref = \$self->{_input}{$file}{content};
|
||||||
|
$$ref =~ s/{{port}}/$self->sockport/eg;
|
||||||
|
}
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user