Update mm-scripts.sh

This commit is contained in:
2025-03-16 22:05:27 -05:00
parent bcc0f6d0df
commit ae918ab96e

View File

@@ -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}