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
1 changed files with 1 additions and 1 deletions

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;
}