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

Fixes on MPTCP support with 6.1 kernel and XRay

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-10-02 21:24:32 +02:00
parent 6d89898a84
commit 8746eaf337
2 changed files with 9 additions and 1 deletions

View file

@ -1375,7 +1375,7 @@ add_inbound_setting() {
json_add_boolean "tcpFastOpen" "$ss_sockopt_tcp_fast_open"
if version_over_5_4; then
test -n "$ss_sockopt_mptcp" && \
json_add_boolean "mptcp" "$ss_sockopt_mptcp"
json_add_boolean "tcpMptcp" "$ss_sockopt_mptcp"
fi
test -n "$ss_sockopt_tproxy" && \
json_add_string "tproxy" "$ss_sockopt_tproxy"

View file

@ -67,6 +67,7 @@ if [ -z "$(uci -q get xray.main)" ]; then
set xray.omrout.ss_tls_key_file='/etc/luci-uploads/client.key'
set xray.omrout.s_shadowsocks_port='65252'
set xray.omrout.mux_concurrency='8'
set xray.omrout.ss_sockopt_mptcp='1'
set xray.omr=inbound
set xray.omr.tag='omrtunnel'
set xray.omr.listen='0.0.0.0'
@ -199,4 +200,11 @@ if [ "$(uci -q get xray.omrout.s_socks_port)" = "" ]; then
EOF
fi
if [ "$(uci -q get xray.omrout.ss_sockopt_mptcp)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.ss_sockopt_mptcp='1'
commit xray
EOF
fi
exit 0