diff --git a/mm-scripts.sh b/mm-scripts.sh index 4298a00..0d5afc5 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -104,7 +104,7 @@ MMSTART(){ until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" - REALWANIP=$(curl -s https://api.ipify.org) + REALWANIP=$(curl -s http://whatismyip.akamai.com) echo "REALWANIP=\"${REALWANIP}\"" > ${TMPFOLDER}/realwanip "${VPN_START[@]}" >/dev/null 2>&1 @@ -290,7 +290,7 @@ MMSTART(){ cc=0 until [ "${REALWANIP}" != "" ] && [ "${mmip}" != "" ] && [[ "${REALWANIP}" != *"connection timed out"* ]] && [[ "${mmip}" != *"connection timed out"* ]]; do # mmip=$(/usr/bin/dig +short +time=2 myip.opendns.com @208.67.222.222) - mmip=$(curl -s https://api.ipify.org) + mmip=$(curl -s http://whatismyip.akamai.com) if [ ${cc} -eq 10 ]; then echo echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}" @@ -724,7 +724,7 @@ MMSTATUS(){ # mmip=$(/usr/bin/dig +short myip.opendns.com @resolver1.opendns.com) # mmip=$(/usr/bin/dig +short +time=2 myip.opendns.com @208.67.222.222) - mmip=$(curl -s https://api.ipify.org) + mmip=$(curl -s http://whatismyip.akamai.com) if [ "${REALWANIP}" != "${mmip}" ] && [[ "${mmip}" != *"timed out"* ]]; then echo -e "${idsCL[Green]}Good${idsCL[Default]}" else