From 517546ad48457a5c11f313f0d1f947ca32e3199d Mon Sep 17 00:00:00 2001 From: FluffyTigerfear Date: Tue, 13 Jun 2023 15:40:53 +0800 Subject: [PATCH] Update client-config.lua --- .../luasrc/model/cbi/shadowsocksr/client-config.lua | 5 +++++ 1 file changed, 5 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 b909fb8b9..88ff64021 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 @@ -226,6 +226,11 @@ o = s:option(Value, "username", translate("Username")) o.rmempty = true o:depends("type", "naiveproxy") o:depends("type", "tuic") +if s:cfgvalue("type") == "tuic" then + o.default = uuid +else + o.default = nil +end 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})