Correct curl --max-time value
This commit is contained in:
parent
50b39d006b
commit
acf0d83730
|
@ -32,7 +32,7 @@ function validate_host
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
debug "Checking host is resolvable: $1"
|
debug "Checking host is resolvable: $1"
|
||||||
# Add --insecure becase remote servers may sometimes have self-signed certs
|
# Add --insecure becase remote servers may sometimes have self-signed certs
|
||||||
if ! curl --insecure --max-time 5.5 $1 > /dev/null 2>&1; then
|
if ! curl --insecure --max-time 5 $1 > /dev/null 2>&1; then
|
||||||
_ret=1
|
_ret=1
|
||||||
debug "Host '$1' is not resolvable!"
|
debug "Host '$1' is not resolvable!"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue