1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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

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;