From 58e52c57bf054b3cbf929e51048ae672233c3382 Mon Sep 17 00:00:00 2001 From: FluffyTigerfear Date: Wed, 14 Jun 2023 11:14:37 +0800 Subject: [PATCH] Update client-config.lua --- .../model/cbi/shadowsocksr/client-config.lua | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) 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 88ff64021..2d85b35c7 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,12 +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") -if s:cfgvalue("type") == "tuic" then - o.default = uuid -else - o.default = nil -end +--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}) @@ -356,7 +351,7 @@ o.default = "0" -- [[ TUIC ]] -- TuicNameId -o = s:option(Value, "tuic_uuid", translate("TUIC NAME UUID (UUID)")) +o = s:option(Value, "tuic_uuid", translate("TUIC user UUID")) o.rmempty = true o.default = uuid o:depends("type", "tuic") @@ -378,8 +373,8 @@ o.rmempty = true o = s:option(Value, "heartbeat_interval", translate("Heartbeat interval")) o:depends("type", "tuic") -o.datatype = "uinteger" -o.default = "10000" +--o.datatype = "uinteger" +o.default = "3s" o.rmempty = true o = s:option(Flag, "disable_sni", translate("Disable SNI")) @@ -390,6 +385,16 @@ o.rmempty = true o = s:option(Flag, "reduce_rtt", translate("Enable 0-RTT QUIC handshake")) o:depends("type", "tuic") o.default = 0 +o.rmempty = false + +o = s:option(Value, "send_window", translate("TUIC send window")) +o.datatype = "uinteger" +o:depends("type", "tuic") +o.rmempty = true + +o = s:option(Value, "receive_window", translate("TUIC receive window")) +o.datatype = "uinteger" +o:depends("type", "tuic") o.rmempty = true o = s:option(Value, "max_udp_relay_packet_size", translate("Max UDP relay packet size"))