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:
parent
e295cd759c
commit
7ac455fca3
@ -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…
Reference in New Issue
Block a user