Skip to content

Commit

Permalink
Merge pull request #1612 from zxlhhyccc/patch-6
Browse files Browse the repository at this point in the history
luci-app-ssr-plus: Fix tcp protocol imported to Vmess node. Do not select TLS.
  • Loading branch information
coolsnowwolf authored Nov 23, 2024
2 parents 28c207b + 35f82ef commit 20b3e95
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 20b3e95

Please sign in to comment.