From e65e45e508070f8139011531b77ea88e892600ea Mon Sep 17 00:00:00 2001 From: FluffyTigerfear Date: Tue, 13 Jun 2023 09:30:37 +0800 Subject: [PATCH] tuic-1.0 new config --- .../luasrc/model/cbi/shadowsocksr/client-config.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua index 6d0fa0712..b909fb8b9 100644 --- a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua +++ b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua @@ -225,6 +225,7 @@ o:depends({type = "v2ray", v2ray_protocol = "socks"}) o = s:option(Value, "username", translate("Username")) o.rmempty = true o:depends("type", "naiveproxy") +o:depends("type", "tuic") o:depends({type = "socks5", auth_enable = true}) o:depends({type = "v2ray", v2ray_protocol = "http", auth_enable = true}) o:depends({type = "v2ray", v2ray_protocol = "socks", auth_enable = true}) @@ -349,6 +350,12 @@ o.rmempty = true o.default = "0" -- [[ TUIC ]] +-- TuicNameId +o = s:option(Value, "tuic_uuid", translate("TUIC NAME UUID (UUID)")) +o.rmempty = true +o.default = uuid +o:depends("type", "tuic") + o = s:option(ListValue, "udp_relay_mode", translate("UDP relay mode")) o:depends("type", "tuic") o:value("native", translate("native"))