mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for MTPCPoverVPN
This commit is contained in:
parent
4f21b4b7c5
commit
4942ead21f
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Released under GPL 3. See LICENSE for the full terms.
|
# Released under GPL 3. See LICENSE for the full terms.
|
||||||
|
|
||||||
{
|
{
|
||||||
START=10
|
START=70
|
||||||
STOP=10
|
STOP=10
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ start_service()
|
||||||
nbintfvpn=0
|
nbintfvpn=0
|
||||||
config_load openmptcprouter
|
config_load openmptcprouter
|
||||||
config_foreach mptcp_over_vpn interface
|
config_foreach mptcp_over_vpn interface
|
||||||
if [ "$nbintf" = "$nbintfvpn" ]; then
|
if [ "$nbintf" = "$nbintfvpn" ] && [ "$nbintf" = "0" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set shadowsocks-libev.sss0.disabled='1'
|
set shadowsocks-libev.sss0.disabled='1'
|
||||||
set glorytun.vpn.host='10.255.250.1'
|
set glorytun.vpn.host='10.255.250.1'
|
||||||
|
@ -81,6 +81,7 @@ start_service()
|
||||||
elif [ "$(uci -q get glorytun.vpn.host)" = "10.255.250.1" ]; then
|
elif [ "$(uci -q get glorytun.vpn.host)" = "10.255.250.1" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
delete shadowsocks-libev.sss0.disabled
|
delete shadowsocks-libev.sss0.disabled
|
||||||
|
set shadowsocks-libev.mptcpovervpn.disabled='1'
|
||||||
set glorytun.vpn.host="$(uci -q get openmptcprouter.vps.ip)"
|
set glorytun.vpn.host="$(uci -q get openmptcprouter.vps.ip)"
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue