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
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`;