mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
migrate: -w 1 for host check
This commit is contained in:
@@ -127,7 +127,7 @@ validate_host_status() {
|
|||||||
info "\nChecking remote host status..."
|
info "\nChecking remote host status..."
|
||||||
|
|
||||||
# Host uptime
|
# Host uptime
|
||||||
if ! nc -z ${_host} ${_port} >/dev/null 2>/dev/null; then
|
if ! nc -w 1 -z ${_host} ${_port} >/dev/null 2>/dev/null; then
|
||||||
error_exit "[ERROR]: Host appears to be down"
|
error_exit "[ERROR]: Host appears to be down"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user