luci-app-ssr-plus: hide tls flow for v2ray-core

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-11-08 14:40:16 +08:00 committed by sbwml
parent 73b39185aa
commit 0238d1d22e

View File

@ -642,7 +642,6 @@ if is_finded("xray") then
o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "kcp", tls = false}) o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "kcp", tls = false})
o:depends({type = "v2ray", v2ray_protocol = "trojan", transport = "tcp", tls = false}) o:depends({type = "v2ray", v2ray_protocol = "trojan", transport = "tcp", tls = false})
o:depends({type = "v2ray", v2ray_protocol = "trojan", transport = "kcp", tls = false}) o:depends({type = "v2ray", v2ray_protocol = "trojan", transport = "kcp", tls = false})
end
-- Flow -- Flow
o = s:option(Value, "vless_flow", translate("Flow")) o = s:option(Value, "vless_flow", translate("Flow"))
@ -653,15 +652,15 @@ o.rmempty = true
o.default = "xtls-rprx-splice" o.default = "xtls-rprx-splice"
o:depends("xtls", true) o:depends("xtls", true)
-- [[ TLS部分 ]] --
-- Flow
o = s:option(Value, "tls_flow", translate("Flow")) o = s:option(Value, "tls_flow", translate("Flow"))
for _, v in ipairs(tls_flows) do for _, v in ipairs(tls_flows) do
o:value(v, translate(v)) o:value(v, translate(v))
end end
o.rmempty = true o.rmempty = true
o:depends({type = "v2ray", v2ray_protocol = "vless", "tls" = true}) o:depends({type = "v2ray", v2ray_protocol = "vless", "tls" = true})
end
-- [[ TLS部分 ]] --
o = s:option(Flag, "tls_sessionTicket", translate("Session Ticket")) o = s:option(Flag, "tls_sessionTicket", translate("Session Ticket"))
o:depends({type = "trojan", tls = true}) o:depends({type = "trojan", tls = true})
o.default = "0" o.default = "0"