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

Fix multipath setting

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-28 10:09:47 +02:00
parent 090f9a35a4
commit d7a7ec3e36

View file

@ -74,10 +74,10 @@ interface_multipath_settings() {
uci -q set network.${config}.peerdns=0
}
[ "$mode" = "master" ] && {
mode="on"
# Force that only one interface is master
if [ "$master" != "" ]; then
logger -t "MPTCP" "Multipath master already set, disable master for $config"
mode="on"
config_set "$config" multipath "on"
uci -q set network.${config}.multipath="on"
uci -q set openmptcprouter.${config}.multipath="on"