mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 21:25:09 +00:00
minor bug fixed
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-15 16:45⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-08-22 19:25⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -1239,7 +1239,7 @@ function VR2QX(subs, Pudp, Ptfo, Pcert0, PTls13) {
|
|||||||
if (host.indexOf("\"Host\"")!=-1 && host.indexOf("{")!=-1) {
|
if (host.indexOf("\"Host\"")!=-1 && host.indexOf("{")!=-1) {
|
||||||
host = JSON.parse(host)["Host"]
|
host = JSON.parse(host)["Host"]
|
||||||
}
|
}
|
||||||
host = "obfs-host=" + host + ", "
|
host = host!="{}"? "obfs-host=" + host + ", " : ""
|
||||||
obfs = obfs + host
|
obfs = obfs + host
|
||||||
}
|
}
|
||||||
if (obfs.indexOf("obfs=over-tls") != -1 || obfs.indexOf("obfs=wss") != -1) {
|
if (obfs.indexOf("obfs=over-tls") != -1 || obfs.indexOf("obfs=wss") != -1) {
|
||||||
@@ -1310,12 +1310,13 @@ function Pobfs(jsonl, Pcert0, PTls13) {
|
|||||||
host0 = jsonl.host && jsonl.host != "" ? ", obfs-host=" + jsonl.host : "";
|
host0 = jsonl.host && jsonl.host != "" ? ", obfs-host=" + jsonl.host : "";
|
||||||
obfsi.push(obfs0 + host0)
|
obfsi.push(obfs0 + host0)
|
||||||
return obfsi.join(", ")
|
return obfsi.join(", ")
|
||||||
} else if (jsonl.tls == "http"){
|
} else if (jsonl.net == "tcp" && jsonl.type == "http"){
|
||||||
obfs0 = "obfs=http";
|
obfs0 = "obfs=http";
|
||||||
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-uri=/";
|
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-uri=/";
|
||||||
uri0 = uri0.indexOf("uri=/")!=-1 ? uri0:uri0.replace("uri=","uri=/")
|
uri0 = uri0.indexOf("uri=/")!=-1 ? uri0:uri0.replace("uri=","uri=/")
|
||||||
host0 = jsonl.host && jsonl.host != "" ? "obfs-host=" + jsonl.host + ", " : "";
|
host0 = jsonl.host && jsonl.host != "" ? "obfs-host=" + jsonl.host + ", " : "";
|
||||||
obfsi.push(obfs0, host0 + uri0);
|
obfsi.push(obfs0, host0 + uri0);
|
||||||
|
return obfsi.join(", ")
|
||||||
} else if (jsonl.net !="tcp"){ // 过滤掉 h2/http 等类型
|
} else if (jsonl.net !="tcp"){ // 过滤掉 h2/http 等类型
|
||||||
return "NOT-SUPPORTTED"
|
return "NOT-SUPPORTTED"
|
||||||
} else if (jsonl.net =="tcp" && jsonl.type != "none") {
|
} else if (jsonl.net =="tcp" && jsonl.type != "none") {
|
||||||
|
|||||||
Reference in New Issue
Block a user