timeout für reachable 2s
This commit is contained in:
parent
858180bd8d
commit
c2e4e8ed7c
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ reachable-default () {
|
|||
local SERVER=$1
|
||||
local PORT=${2:-22}
|
||||
local res=3
|
||||
if nc -z $SERVER $PORT 2>/dev/null; then
|
||||
if nc -w 2 -z $SERVER $PORT 2>/dev/null; then
|
||||
res=0
|
||||
fi
|
||||
return $res
|
||||
|
|
Loading…
Reference in a new issue