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

Fix when removing mptcp over vpn interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-05 09:55:43 +02:00
parent 7e5b91842b
commit 7797f711cc

View file

@ -68,13 +68,14 @@ mptcp_over_vpn() {
[ -z "$multipath" ] && multipath="on"
uci -q batch <<-EOF >/dev/null
delete network.ovpn${interface}
commit network
delete openvpn.${interface}
commit openvpn
set openmptcprouter.${interface}.multipath="${multipath}"
set network.${interface}.multipath="${multipath}"
set openmptcprouter.${interface}.multipathvpn="0"
delete openmptcprouter.ovpn${interface}
commit openmptcprouter
commit network
EOF
fi
}