From 35f82ef27c9fe535b4fd395c0c7f703f1fe7792b Mon Sep 17 00:00:00 2001 From: zxl hhyccc <45259624+zxlhhyccc@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:57:53 +0800 Subject: [PATCH] luci-app-ssr-plus: Fix tcp protocol imported to the Vmess node. Do not select TLS. --- luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm index c81590ef690..0e196704467 100644 --- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm +++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm @@ -259,11 +259,12 @@ if (ssm.net == "tcp") { if (ssm.type && ssm.type != "http") { ssm.type = "none" + } else { + document.getElementsByName('cbid.shadowsocksr.' + sid + '.http_host')[0].value = ssm.host; + document.getElementsByName('cbid.shadowsocksr.' + sid + '.http_path')[0].value = ssm.path; } document.getElementsByName('cbid.shadowsocksr.' + sid + '.tcp_guise')[0].value = ssm.type; document.getElementsByName('cbid.shadowsocksr.' + sid + '.tcp_guise')[0].dispatchEvent(event); - document.getElementsByName('cbid.shadowsocksr.' + sid + '.http_host')[0].value = ssm.host; - document.getElementsByName('cbid.shadowsocksr.' + sid + '.http_path')[0].value = ssm.path; } if (ssm.net == "ws") { document.getElementsByName('cbid.shadowsocksr.' + sid + '.ws_host')[0].value = ssm.host;