Browse Source

luci-app-ssr-plus: Fix 'TUIC' does not run or cannot connect.

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.
zxlhhyccc 1 year ago
parent
commit
554ebc26a4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

+ 3 - 1
luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

@@ -568,6 +568,7 @@ o.rmempty = true
 
 -- Tuic settings for the local inbound socks5 server
 o = s:option(Flag, "tuic_dual_stack", translate("Dual-stack Listening Socket"))
+o.description = translate("If this option is not set, the socket behavior is platform dependent.")
 o:depends("type", "tuic")
 o.default = "0"
 o.rmempty = true
@@ -941,7 +942,8 @@ o:depends("reality", true)
 o.rmempty = true
 
 o = s:option(DynamicList, "tls_alpn", translate("TLS ALPN"))
-o:depends({type = "tuic", tls = true})
+o:depends("type", "tuic")
+o.default = "h3"
 o.rmempty = true
 
 -- [[ allowInsecure ]]--