From e8079ac6aab1d79748416d4e5d4aaaa34e2a231b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 26 May 2025 22:30:15 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 08b91af9..28276299 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -502,8 +502,7 @@ UPDATE_DYNDNS(){ NEWIP="$(wget -qO- https://ipinfo.io/ip ; echo)" >/dev/null 2>&1 if [ "${NEWIP}" == "" ]; then NEWIP="$(wget -qO- https://ipecho.net/plain ; echo)" >/dev/null 2>&1 - else - NEWIP="WAN IP could not be found" + [ "${NEWIP}" == "" ] && NEWIP="WAN IP could not be found" fi fi # NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2`;