mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Fix MPTCP over VPN
This commit is contained in:
parent
4804253d45
commit
4e3e03fa43
1 changed files with 3 additions and 0 deletions
|
@ -248,9 +248,11 @@ start_service()
|
|||
commit glorytun-udp
|
||||
EOF
|
||||
fi
|
||||
uci -q set shadowsocks-libev.ss_rules.server='mptcpovervpn'
|
||||
elif ([ "$(uci -q get glorytun.vpn.host)" = "10.255.250.1" ] || [ "$(uci -q get glorytun.vpn.host)" = "10.255.247.1" ]) && [ "$nbintf" != "$nbintfvpn" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set shadowsocks-libev.sss0.disabled='0'
|
||||
set shadowsocks-libev.ss_rules.server='sss0'
|
||||
set glorytun.vpn.host="$(uci -q get openmptcprouter.vps.ip | awk '{print $1}')"
|
||||
set glorytun-udp.vpn.host="$(uci -q get openmptcprouter.vps.ip | awk '{print $1}')"
|
||||
commit glorytun
|
||||
|
@ -310,6 +312,7 @@ start_service()
|
|||
set shadowsocks-libev.sss0.disabled='0'
|
||||
EOF
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set shadowsocks-libev.ss_rules.server='sss0'
|
||||
delete shadowsocks-libev.mptcpovervpn
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue