1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix when a wan is back in redundant mode

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-08-30 13:10:07 +02:00
parent da8a57bf13
commit b486c413c3

View file

@ -410,7 +410,11 @@ if [ "$multipath_config" = "master" ]; then
fi
if [ -n "$OMR_TRACKER_DEVICE_IP" ] && [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ]; then
config_load openmptcprouter
config_foreach set_server_route server
if [ "$(uci -q get openmptcprouter.settings.master)" = "redundant" ]; then
config_foreach set_server_all_routes server
else
config_foreach set_server_route server
fi
fi
[ "$multipath_config" = "on" ] && {