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:
parent
101426c8cf
commit
2f76438cc2
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue