Commit 2415724d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

curl's -P option easier.
parent 5463177f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;