mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -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:
parent
5463177f1f
commit
2415724d5f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user