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 691f60ee7..ab34d2684 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 @@ -661,6 +661,7 @@ if is_finded("xray") then o:value("safari", translate("safari")) o:value("randomized", translate("randomized")) o:depends({type = "v2ray", tls = true}) + o:depends({type = "v2ray", xtls = true}) o.default = "disable" end diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua index eb0e6e369..25ed022aa 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua @@ -161,8 +161,9 @@ local Xray = { allowInsecure = (server.insecure == "1") and true or nil, serverName = server.tls_host } or nil, - xtlsSettings = (server.xtls == '1' and (server.insecure == "1" or server.tls_host)) and { + xtlsSettings = (server.xtls == '1' and (server.insecure == "1" or server.tls_host or server.fingerprint)) and { -- xtls + fingerprint = server.fingerprint, allowInsecure = (server.insecure == "1") and true or nil, serverName = server.tls_host, minVersion = "1.3"