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:
parent
7e5b91842b
commit
7797f711cc
1 changed files with 2 additions and 1 deletions
|
@ -68,13 +68,14 @@ mptcp_over_vpn() {
|
||||||
[ -z "$multipath" ] && multipath="on"
|
[ -z "$multipath" ] && multipath="on"
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
delete network.ovpn${interface}
|
delete network.ovpn${interface}
|
||||||
commit network
|
|
||||||
delete openvpn.${interface}
|
delete openvpn.${interface}
|
||||||
commit openvpn
|
commit openvpn
|
||||||
set openmptcprouter.${interface}.multipath="${multipath}"
|
set openmptcprouter.${interface}.multipath="${multipath}"
|
||||||
|
set network.${interface}.multipath="${multipath}"
|
||||||
set openmptcprouter.${interface}.multipathvpn="0"
|
set openmptcprouter.${interface}.multipathvpn="0"
|
||||||
delete openmptcprouter.ovpn${interface}
|
delete openmptcprouter.ovpn${interface}
|
||||||
commit openmptcprouter
|
commit openmptcprouter
|
||||||
|
commit network
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue