From 6515bbbd0d0db3fdcac098df7d617dbeeeff96d6 Mon Sep 17 00:00:00 2001 From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com> Date: Sat, 13 Apr 2024 22:57:16 +0800 Subject: [PATCH] luci-app-ssr-plus: Fix 'TUIC' does not run or cannot connect. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、If the listening socket is not set to dual-stack, the socket behavior depends on the platform. 2、Settings for the local inbound socks5 server should be set to [::] for proper running after the dual-stack configuration. --- luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua index b07949e5..877d9554 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua @@ -476,8 +476,8 @@ local tuic = { receive_window = tonumber(server.receive_window) }, ["local"] = { - server = tonumber(socks_port) and (server.tuic_dual_stack == "1" and "[::1]:" or "127.0.0.1:") .. (socks_port == "0" and local_port or tonumber(socks_port)), - dual_stack = (server.tuic_dual_stack == "1") and true or false, + server = tonumber(socks_port) and "[::]:" .. (socks_port == "0" and local_port or tonumber(socks_port)), + dual_stack = (server.tuic_dual_stack == "1") and true or nil, max_packet_size = tonumber(server.tuic_max_package_size) } }