dont signal port green

This commit is contained in:
rootzoll
2018-12-12 13:53:22 +01:00
parent 9534d7dca6
commit 80d4f7e25d

View File

@@ -166,7 +166,8 @@ else
public_check=$(nc -z -w6 ${public_ip} ${public_port} 2>/dev/null; echo $?) public_check=$(nc -z -w6 ${public_ip} ${public_port} 2>/dev/null; echo $?)
if [ $public_check = "0" ]; then if [ $public_check = "0" ]; then
public="" public=""
public_color="${color_green}" # only set yellow/normal because netcat can only say that the port is open - not that it points to this device for sure
public_color="${color_yellow}"
else else
public="" public=""
public_color="${color_red}" public_color="${color_red}"
@@ -194,7 +195,8 @@ else
else else
public_check=$(nc -z -w6 ${public_ip} 9735 2>/dev/null; echo $?) public_check=$(nc -z -w6 ${public_ip} 9735 2>/dev/null; echo $?)
if [ $public_check = "0" ]; then if [ $public_check = "0" ]; then
ln_publicColor="${color_green}" # only set yellow/normal because netcat can only say that the port is open - not that it points to this device for sure
ln_publicColor="${color_yellow}"
else else
ln_publicColor="${color_red}" ln_publicColor="${color_red}"
fi fi