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

Only reset route cache for MPTCP init

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-14 21:14:17 +02:00
parent 3bfa7c30c1
commit dc05eb6cb7

View file

@ -62,7 +62,7 @@ interface_multipath_settings() {
[ "$config" = "lan" ] && mode="off"
[ "$config" = "omrvpn" ] && mode="off"
[ "$config" = "omr6in4" ] && mode="off"
[ "$mode" = "" ] && mode="on"
[ "$mode" = "" ] && mode="off"
logger -t "MPTCP" "Multipath not defined for $config set to $mode"
uci -q set network.${config}.multipath="$mode"
uci -q set openmptcprouter.${config}.multipath="$mode"
@ -363,9 +363,12 @@ start_service() {
#config_foreach remove rule
#config_foreach remove rule6
[ -z "$intf" ] && [ -n "$(uci -q get network.@route[-1])" ] && {
logger -t "MPTCP" "Flush main table"
ip route flush table main
ip -6 route flush table main
# logger -t "MPTCP" "Flush main table"
# ip route flush table main
# ip -6 route flush table main
logger -t "MPTCP" "Flush route cache"
ip route flush cache
ip -6 route flush cache
}
config_foreach interface_multipath_settings interface $intf
set_multipath