Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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`;
|
||||||
|
|||||||
Reference in New Issue
Block a user