mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
output better error detection, like when ipv6 can't resolve
This commit is contained in:
parent
4d1f3d3cd0
commit
cf51f7fb65
@ -375,6 +375,11 @@ sub runhttpserver {
|
||||
if ( $data =~ /WE ROOLZ: (\d+)/ ) {
|
||||
$pid = 0+$1;
|
||||
}
|
||||
elsif($res == 6) {
|
||||
# curl: (6) Couldn't resolve host '::1'
|
||||
print "RUN: failed to resolve host\n";
|
||||
return -3;
|
||||
}
|
||||
elsif($data || ($res != 7)) {
|
||||
print "RUN: Unknown server is running on port $port\n";
|
||||
return -2;
|
||||
|
Loading…
Reference in New Issue
Block a user