Update nodemgmt-scripts.sh
This commit is contained in:
@@ -499,7 +499,7 @@ UPDATE_DYNDNS(){
|
|||||||
echo -en "${idsCL[White]}Current WAN IP : ";
|
echo -en "${idsCL[White]}Current WAN IP : ";
|
||||||
NEWIP="$(dig +short myip.opendns.com @resolver1.opendns.com)" >/dev/null 2>&1
|
NEWIP="$(dig +short myip.opendns.com @resolver1.opendns.com)" >/dev/null 2>&1
|
||||||
if [ "${NEWIP}" == "" ]; then
|
if [ "${NEWIP}" == "" ]; then
|
||||||
NEWIP="$(curl https://ipinfo.io/ip)" >/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
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user