1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

When trying to see if there's a friendly http server on "our" port, we

only accept return code 7 to indicate that there's no server present.
This commit is contained in:
Daniel Stenberg 2004-02-20 06:59:17 +00:00
parent e295cd759c
commit 7ac455fca3

View File

@ -338,7 +338,7 @@ sub runhttpserver {
if ( $data =~ /WE ROOLZ: (\d+)/ ) {
$pid = 0+$1;
}
elsif($data) {
elsif($data || ($res != 7)) {
print "RUN: Unknown HTTP server is running on port $HOSTPORT\n";
return -2;
}