mirror of
https://github.com/curl/curl.git
synced 2026-04-26 13:42:12 +03: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:
parent
e295cd759c
commit
7ac455fca3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue