mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-26 05:45:09 +00:00
yaml fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-09-03 10:39⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-09-05 14:49⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -239,7 +239,7 @@ if (flag == 1) { //server 类型统一处理
|
|||||||
total = QXSort(total, Psort0);
|
total = QXSort(total, Psort0);
|
||||||
}
|
}
|
||||||
if (total.length > 0){
|
if (total.length > 0){
|
||||||
if (Pcnt == 1) {$notify("final content" , "Nodes:" +total.length, total)}
|
if (Pcnt == 1) {$notify("Final Content" , "Nodes: " +total.length, total)}
|
||||||
total = TagCheck_QX(total).join("\n") //节点名检查
|
total = TagCheck_QX(total).join("\n") //节点名检查
|
||||||
total = Base64.encode(total) //强制节点类型 base64 加密后再导入 Quantumult X
|
total = Base64.encode(total) //强制节点类型 base64 加密后再导入 Quantumult X
|
||||||
$done({ content: total });
|
$done({ content: total });
|
||||||
@@ -865,13 +865,13 @@ function Pobfs(jsonl, Pcert, Ptls13) {
|
|||||||
if (jsonl.net == "ws" && jsonl.tls == "tls") {
|
if (jsonl.net == "ws" && jsonl.tls == "tls") {
|
||||||
obfs0 = "obfs=wss, " + tcert + ", " + tls13 + ", ";
|
obfs0 = "obfs=wss, " + tcert + ", " + tls13 + ", ";
|
||||||
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-uri=/";
|
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-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(", ")
|
return obfsi.join(", ")
|
||||||
} else if (jsonl.net == "ws") {
|
} else if (jsonl.net == "ws") {
|
||||||
obfs0 = "obfs=ws";
|
obfs0 = "obfs=ws";
|
||||||
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-uri=/";
|
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "obfs-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(", ")
|
return obfsi.join(", ")
|
||||||
} else if (jsonl.tls == "tls" && jsonl.net == "tcp") { // 过滤掉 h2/http 等类型
|
} else if (jsonl.tls == "tls" && jsonl.net == "tcp") { // 过滤掉 h2/http 等类型
|
||||||
@@ -1495,14 +1495,14 @@ function CSS2QX(cnt) {
|
|||||||
mtd = "method="+ cnt.cipher
|
mtd = "method="+ cnt.cipher
|
||||||
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"
|
||||||
obfs = cnt.plugin == "obfs"? "obfs=" + cnt["plugin-opts"].mode : ""
|
obfs = cnt["plugin-opts"] ? "obfs=" + cnt["plugin-opts"].mode : ""
|
||||||
ohost = cnt.plugin == "obfs"? "obfs-host=" + cnt["plugin-opts"].host : ""
|
ohost = cnt["plugin-opts"] ? "obfs-host=" + cnt["plugin-opts"].host : ""
|
||||||
ouri = ""
|
ouri = ""
|
||||||
cert = ""
|
cert = ""
|
||||||
if (cnt.plugin == "v2ray-plugin") {
|
if (obfs.indexOf("websocket") != -1) {
|
||||||
obfs = cnt["plugin-opts"].tls? "obfs=wss" : "obfs=ws"
|
obfs = cnt["plugin-opts"].tls? "obfs=wss" : "obfs=ws"
|
||||||
ohost = cnt["plugin-opts"].host? "obfs-host=" + cnt["plugin-opts"].host:""
|
ohost = cnt["plugin-opts"].host? "obfs-host=" + cnt["plugin-opts"].host:""
|
||||||
ouri = cnt["plugin-opts"].path? "obfs-uri=" + cnt["plugin-opts"].path: ""
|
ouri = cnt["plugin-opts"].path? "obfs-uri=" + cnt["plugin-opts"].path: ""
|
||||||
if (obfs == "obfs=wss") { // tls verification
|
if (obfs == "obfs=wss") { // tls verification
|
||||||
cert = Pcert0 == 1? "" : "tls-verification =false"}
|
cert = Pcert0 == 1? "" : "tls-verification =false"}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user