Skip to content

Commit

Permalink
Merge pull request #1551 from zxlhhyccc/patch-74
Browse files Browse the repository at this point in the history
luci-app-ssr-plus: Fixed problem subscription `reality`does not read …
  • Loading branch information
coolsnowwolf authored Oct 13, 2024
2 parents a2a83f1 + e27980d commit 746bde7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,6 @@ if is_finded("xray") then
o:value(v, translate(v))
end
o.rmempty = true
o:depends("xtls", true)
o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "tcp", tls = true})
o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "tcp", reality = true})

Expand Down
5 changes: 2 additions & 3 deletions luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,9 @@ local function processData(szType, content)
result.vmess_id = url.user
result.vless_encryption = params.encryption or "none"
result.transport = params.type or "tcp"
result.tls = (params.security == "tls") and "1" or "0"
result.tls = (params.security == "tls" or params.security == "xtls") and "1" or "0"
result.tls_host = params.sni
result.xtls = (params.security == "xtls") and "1" or nil
result.tls_flow = (result.tls == "1" or result.xtls == "1" or result.reality == "1") and params.flow or nil
result.tls_flow = (params.security == "tls" or params.security == "reality") and params.flow or nil
result.fingerprint = params.fp
result.reality = (params.security == "reality") and "1" or "0"
result.reality_publickey = params.pbk and UrlDecode(params.pbk) or nil
Expand Down

0 comments on commit 746bde7

Please sign in to comment.