1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Restart mlvpn if it's used and VPN detected as down

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-14 19:42:26 +02:00
parent a1577392fe
commit fb203484d0

View file

@ -367,6 +367,9 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || [ "$interface_up" != "true" ]; then
if [ "$(uci -q get dsvpn.vpn.enable)" = "1" ]; then
/etc/init.d/dsvpn restart
fi
if [ "$(uci -q get mlvpn.general.enable)" = "1" ]; then
/etc/init.d/mlvpn restart
fi
config_load openmptcprouter
config_foreach disable_pihole server
#if [ "$(uci -q get openmptcprouter.settings.master)" != "balancing" ] || [ "$(uci -q get openmptcprouter.settings.vpn)" = "mlvpn" ]; then