Skip to content

Commit

Permalink
luci-app-ssr-plus: Fix tcp protocol imported to the Vmess node. Do no…
Browse files Browse the repository at this point in the history
…t select TLS.
  • Loading branch information
zxlhhyccc authored Nov 23, 2024
1 parent 28c207b commit 35f82ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35f82ef

Please sign in to comment.