minor bug fixed

This commit is contained in:
Shawn
2021-08-27 12:13:57 +08:00
parent d21f342a9c
commit cb9b040e41
2 changed files with 8 additions and 3 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,5 @@
/** /**
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-24 11:45⟧ ☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-27 11:45⟧
---------------------------------------------------------- ----------------------------------------------------------
🛠 发现 𝐁𝐔𝐆 请反馈: @ShawnKOP_bot 🛠 发现 𝐁𝐔𝐆 请反馈: @ShawnKOP_bot
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
@@ -2186,7 +2186,12 @@ function CSSR2QX(cnt) {
udp = cnt.udp ? "udp-relay=true" : "udp-relay=false" udp = cnt.udp ? "udp-relay=true" : "udp-relay=false"
tfo = cnt.tfo ? "fast-open=true" : "fast-open=false" tfo = cnt.tfo ? "fast-open=true" : "fast-open=false"
prot = "ssr-protocol=" + cnt.protocol prot = "ssr-protocol=" + cnt.protocol
ppara = "ssr-protocol-param=" + cnt["protocol-param"] 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 obfs = "obfs=" + cnt.obfs
ohost = "obfs-host=" + cnt["obfs-param"] ohost = "obfs-host=" + cnt["obfs-param"]
node = "shadowsocks="+[ipt, pwd, mtd, udp, tfo, prot, ppara, obfs, ohost, tag].filter(Boolean).join(", ") node = "shadowsocks="+[ipt, pwd, mtd, udp, tfo, prot, ppara, obfs, ohost, tag].filter(Boolean).join(", ")