Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
dee1ce1ab8
commit
4ec0d70521
1 file changed
+1
-1
+1
-1
@@ -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