Update mm-scripts.sh
This commit is contained in:
@@ -734,7 +734,7 @@ MMSTATUS(){
|
|||||||
# 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=$(dig +short txt ch whoami.cloudflare @1.0.0.1)
|
mmip=$(dig +short txt ch whoami.cloudflare @1.0.0.1)
|
||||||
mmip=${mmip//\"/}
|
mmip=${mmip//\"/}
|
||||||
if [ "${REALWANIP}" != "${mmip}" ] && [[ "${mmip}" != *";;"* ]]; then
|
if [ "${REALWANIP}" != "${mmip}" ] && [[ "${mmip}" != *"timed out"* ]]; then
|
||||||
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}Not Routing${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not Routing${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user