mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
minor bug fixed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-24 11:45⟧
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-27 11:45⟧
|
||||
----------------------------------------------------------
|
||||
🛠 发现 𝐁𝐔𝐆 请反馈: @ShawnKOP_bot
|
||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||
@@ -2186,7 +2186,12 @@ function CSSR2QX(cnt) {
|
||||
udp = cnt.udp ? "udp-relay=true" : "udp-relay=false"
|
||||
tfo = cnt.tfo ? "fast-open=true" : "fast-open=false"
|
||||
prot = "ssr-protocol=" + cnt.protocol
|
||||
if (typeof(cnt["protocol-param"]) == "string") {
|
||||
ppara = "ssr-protocol-param=" + cnt["protocol-param"]
|
||||
} else if (typeof(cnt["protocol-param"]) == "object") {
|
||||
console.log(typeof(cnt["protocol-param"]))
|
||||
ppara = "ssr-protocol-param=" + JSON.stringify(cnt["protocol-param"]).replace(/{|}|\s|"/g,"")
|
||||
}
|
||||
obfs = "obfs=" + cnt.obfs
|
||||
ohost = "obfs-host=" + cnt["obfs-param"]
|
||||
node = "shadowsocks="+[ipt, pwd, mtd, udp, tfo, prot, ppara, obfs, ohost, tag].filter(Boolean).join(", ")
|
||||
|
||||
Reference in New Issue
Block a user