Browse Source

Changing nc options in ssh check

Yann Weber 6 years ago
parent
commit
ff5d27704a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      check.sh

+ 1
- 1
check.sh View File

@@ -507,7 +507,7 @@ check_ssh_nc() {
507 507
 		port=22
508 508
 	fi
509 509
 
510
-	rep="$(nc -q1 $host $port </dev/null)"
510
+	rep="$(nc -w1 $host $port </dev/null)"
511 511
 	res=$?
512 512
 	if [ "$res" -ne "0" ]
513 513
 	then

Loading…
Cancel
Save