Update mm-scripts.sh
This commit is contained in:
@@ -149,7 +149,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
|
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
|
||||||
|
|
||||||
# if [ "${zerogw}" != "${defaultgw}" ]; then
|
# if [ "${zerogw}" != "${defaultgw}" ]; then
|
||||||
if [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
# if [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
||||||
|
if [ "${zerogw}" != "${defaultgw}" ] || [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
||||||
echo "$(date) - Adding VPN default routes" >> $logfile
|
echo "$(date) - Adding VPN default routes" >> $logfile
|
||||||
echo -en "${idsCL[LightCyan]}Adding VPN default routes :${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Adding VPN default routes :${idsCL[Default]}"
|
||||||
/bin/ip route del default
|
/bin/ip route del default
|
||||||
|
|||||||
Reference in New Issue
Block a user