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:
parent
3bfa7c30c1
commit
dc05eb6cb7
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue