Update mm-scripts.sh
This commit is contained in:
@@ -291,8 +291,7 @@ MMSTART(){
|
|||||||
until [ "${REALWANIP}" != "" ] && [ "${mmip}" != "" ] && [[ "${REALWANIP}" != *"connection timed out"* ]] && [[ "${mmip}" != *"connection timed out"* ]]; do
|
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=$(/usr/bin/dig +short +time=2 myip.opendns.com @208.67.222.222)
|
||||||
mmip=$(curl -s https://api.ipify.org)
|
mmip=$(curl -s https://api.ipify.org)
|
||||||
echo "(${mmip}) (${REALWANIP})"
|
if [ ${cc} -eq 10 ]; then
|
||||||
if [ ${cc} -eq 20 ]; then
|
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}"
|
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}
|
echo "$(date) - Cannot get an WAN address, restarting system! wanip(${REALWANIP}) vpnip(${mmip})" >> ${MM_LOGFILE}
|
||||||
|
|||||||
Reference in New Issue
Block a user