mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
shadowrocket vmess URI
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-06-09 22:40⟧
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-06-21 09:55⟧
|
||||
----------------------------------------------------------
|
||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||
@@ -1158,10 +1158,14 @@ function VR2QX(subs, Pudp, Ptfo, Pcert, Ptls13) {
|
||||
if (obfs == "none") { //
|
||||
obfs = subs.indexOf("tls=1") != -1 ? "obfs=over-tls, " : "" //over-tls
|
||||
} else if (obfs == "websocket") {
|
||||
obfs = subs.indexOf("tls=1") != -1 ? "obfs=wss, " : "obfs=ws," //ws,wss 类型
|
||||
obfs = subs.indexOf("tls=1") != -1 ? "obfs=wss, " : "obfs=ws, " //ws,wss 类型
|
||||
var ouri = subs.indexOf("&path=") != -1 ? subs.split("&path=")[1].split("&")[0] : "/" //ws,wss 类型
|
||||
obfs = obfs + "obfs-uri=" + ouri + ", "
|
||||
var host = subs.indexOf("&obfsParam=") != -1 ? "obfs-host=" + subs.split("&obfsParam=")[1].split("&")[0] + ", " : ""
|
||||
var host = subs.indexOf("&obfsParam=") != -1 ? decodeURIComponent(subs.split("&obfsParam=")[1].split("&")[0]) : ""
|
||||
if (host.indexOf("\"Host\"")!=-1 && host.indexOf("{")!=-1) {
|
||||
host = JSON.parse(host)["Host"]
|
||||
}
|
||||
host = "obfs-host=" + host + ", "
|
||||
obfs = obfs + host
|
||||
}
|
||||
if (obfs.indexOf("obfs=over-tls") != -1 || obfs.indexOf("obfs=wss") != -1) {
|
||||
|
||||
Reference in New Issue
Block a user