add debug
This commit is contained in:
parent
b811d7b41a
commit
33662fa36b
1 changed files with 3 additions and 0 deletions
|
@ -592,6 +592,9 @@ reachable-default () {
|
|||
local SERVER=$1
|
||||
local PORT=${2:-22}
|
||||
local res=1
|
||||
if $MYSHELLCONFIG_DEBUG; then
|
||||
echo SERVER:PORT "${SERVER}:${PORT}"
|
||||
fi
|
||||
if nc -z $SERVER $PORT 2>/dev/null; then
|
||||
echo "${SERVER}:${PORT} is reachable" >&2
|
||||
res=0
|
||||
|
|
Loading…
Reference in a new issue