Update mm-scripts.sh

This commit is contained in:
2023-01-22 15:30:22 -06:00
parent 457790039d
commit ab6d3cc593

View File

@@ -349,8 +349,8 @@ MMSTATUS(){
else
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
if [[ ${srvc} == *"vpn"* ]]; then
zerogw=$(netstat -r | grep '0.0.0.0' | head -1 | awk '{ print $2}')
defaultgw=$(netstat -r | grep 'default' | head -1 | awk '{ print $2}')
zerogw=$(netstat -rn | grep '0.0.0.0' | head -1 | awk '{ print $2}')
defaultgw=$(netstat -rn | grep 'default' | head -1 | awk '{ print $2}')
echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
if [ "${zerogw}" = "${defaultgw}" ]; then