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

More log and fix on mptcp

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-07-23 17:45:20 +02:00
parent 2ee6a5c17e
commit b634bf6554

View file

@ -52,7 +52,15 @@ interface_multipath_settings() {
id=$count
config_set "$config" metric $count
uci -q set network.${config}.metric=$count
config_get mode "$config" multipath "off"
config_get mode "$config" multipath
[ "$mode" = "" ] && {
[ "$config" = "lan" ] && mode="off"
[ "$config" = "omrvpn" ] && mode="off"
[ "$config" = "omr6in4" ] && mode="off"
[ "$mode" = "" ] && mode="on"
logger -t "MPTCP" "Multipath not defined for $config set to $mode"
uci -q set network.${config}.multipath="$mode"
}
[ "$mode" != "off" ] && {
[ -n "$mptcpintf" ] && mptcpintf="$mptcpintf $iface"
[ -z "$mptcpintf" ] && mptcpintf="$iface"