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

Allow to disable routes set by mptcp init script

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-08-11 21:20:01 +02:00
parent 101426c8cf
commit 2f76438cc2

View file

@ -520,10 +520,12 @@ start_service() {
ip route flush cache
ip -6 route flush cache
}
config_foreach interface_multipath_settings interface $intf
if [ "$(uci -q get network.globals.mptcp_disable_initial_config)" != "1" ]; then
config_foreach interface_multipath_settings interface $intf
config_foreach add_route route
config_foreach add_route6 route6
fi
set_multipath
config_foreach add_route route
config_foreach add_route6 route6
# If no master is defined, one interface is defined as master
if [ "$master" = "" ] && [ "$intf" = "" ]; then
intfmaster="$mptcpmintf"