Update nodemgmt-scripts.sh

This commit is contained in:
2025-05-26 22:30:15 -05:00
parent 4ec0d70521
commit e8079ac6aa

View File

@@ -502,8 +502,7 @@ UPDATE_DYNDNS(){
NEWIP="$(wget -qO- https://ipinfo.io/ip ; echo)" >/dev/null 2>&1 NEWIP="$(wget -qO- https://ipinfo.io/ip ; echo)" >/dev/null 2>&1
if [ "${NEWIP}" == "" ]; then if [ "${NEWIP}" == "" ]; then
NEWIP="$(wget -qO- https://ipecho.net/plain ; echo)" >/dev/null 2>&1 NEWIP="$(wget -qO- https://ipecho.net/plain ; echo)" >/dev/null 2>&1
else [ "${NEWIP}" == "" ] && NEWIP="WAN IP could not be found"
NEWIP="WAN IP could not be found"
fi fi
fi fi
# NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2`; # NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2`;