Make the server ignore the given PORT address, to make it possible to test

curl's -P option easier.
This commit is contained in:
Daniel Stenberg 2005-01-26 23:18:31 +00:00
parent 5463177f1f
commit 2415724d5f
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ sub PORT_command {
print "500 silly you, go away\r\n";
return 0;
}
my $iaddr = inet_aton("$1.$2.$3.$4");
#my $iaddr = inet_aton("$1.$2.$3.$4");
my $iaddr = inet_aton("127.0.0.1"); # always use localhost
my $port = ($5<<8)+$6;