diff --git a/mm-scripts.sh b/mm-scripts.sh index 0786841..4298a00 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -291,8 +291,7 @@ MMSTART(){ 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) - echo "(${mmip}) (${REALWANIP})" - if [ ${cc} -eq 20 ]; then + if [ ${cc} -eq 10 ]; then echo echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}" echo "$(date) - Cannot get an WAN address, restarting system! wanip(${REALWANIP}) vpnip(${mmip})" >> ${MM_LOGFILE}