remove PING_BEFORE_SSH
This commit is contained in:
parent
22ba5ed823
commit
e9cf39ad40
|
@ -746,10 +746,6 @@ test_server() {
|
|||
host=$(echo "${item}" | cut -d':' -f1)
|
||||
port=$(echo "${item}" | cut -d':' -f2)
|
||||
|
||||
if [ "${PING_BEFORE_SSH}" = "1" ]; then
|
||||
ping -w 2 "${host}" > /dev/null
|
||||
fi
|
||||
|
||||
# Test if the server is accepting connections
|
||||
ssh -q -o "ConnectTimeout ${SSH_CONNECT_TIMEOUT}" "${host}" -p "${port}" -t "exit"
|
||||
# shellcheck disable=SC2181
|
||||
|
@ -1085,11 +1081,6 @@ SERVERS_FALLBACK=${SERVERS_FALLBACK:-1}
|
|||
# timeout (in seconds) for SSH connections
|
||||
SSH_CONNECT_TIMEOUT=${SSH_CONNECT_TIMEOUT:-90}
|
||||
|
||||
# Send a couple of ping packets before SSH.
|
||||
# It comes from a weird bug in our network;
|
||||
# the connection could not be established without a ping in the preceding 5 minutes.
|
||||
PING_BEFORE_SSH=${PING_BEFORE_SSH:-1}
|
||||
|
||||
# execute main function
|
||||
main
|
||||
|
||||
|
|
Loading…
Reference in New Issue