mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-26 01:35:09 +00:00
...
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-08-23 23:39⟧
|
||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-08-24 10:30⟧
|
||||
----------------------------------------------------------
|
||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||
@@ -22,7 +22,7 @@
|
||||
⦿ 𝗲𝗺𝗼𝗷𝗶=1(国行设备用2)/-1, 添加/删除节点名内地区旗帜;
|
||||
⦿ 𝘂𝗱𝗽=1/-1, 𝘁𝗳𝗼=1/-1, 分别强制开启(关闭) 𝐮𝐝𝐩-𝐫𝐞𝐥𝐚𝐲/𝐟𝐚𝐬𝐭-𝐨𝐩𝐞𝐧;
|
||||
⦿ 𝘁𝗹𝘀13=1, 开启 𝐭𝐥𝐬1.3, 请自行确认服务端是否已开启;
|
||||
⦿ 𝗰𝗲𝗿𝘁=0, 强制"𝐭𝐥𝐬-𝐯𝐞𝐫𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧=𝐟𝐚𝐥𝐬𝐞" 跳过证书验证;
|
||||
⦿ 𝗰𝗲𝗿𝘁=1, "𝐭𝐥𝐬-𝐯𝐞𝐫𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧=𝐭𝐫𝐮𝐞" 开启证书验证(默认关闭);
|
||||
⦿ 𝗶𝗻, 𝗼𝘂𝘁, 分别为 保留、删除 节点;
|
||||
❖ 多参数(逻辑"或")用 "+", 逻辑"与"用 "." 表示;
|
||||
❖ 支持中文, 操作以下特殊字符时请先替换
|
||||
@@ -874,7 +874,7 @@ function V2QX(subs, Pudp, Ptfo, Pcert, Ptls13) {
|
||||
obfs = Pobfs(ss, cert, tls13);
|
||||
if (obfs == "" || obfs == undefined) {
|
||||
nss.push(ip, mtd, pwd, tfo, udp, tag)
|
||||
} else {
|
||||
} else if(obfs != "NOT-SUPPORTTED"){
|
||||
nss.push(ip, mtd, pwd, obfs, tfo, udp, tag);
|
||||
}
|
||||
QX = nss.join(", ");
|
||||
@@ -900,12 +900,14 @@ function Pobfs(jsonl, Pcert, Ptls13) {
|
||||
host0 = jsonl.host && jsonl.host != "" ? "obfs-host=" + jsonl.host + "," : "";
|
||||
obfsi.push(obfs0, host0 + uri0);
|
||||
return obfsi.join(", ")
|
||||
} else if (jsonl.tls == "tls") {
|
||||
} else if (jsonl.tls == "tls" && !jsonl.net) { // 过滤掉 h2/http 等类型
|
||||
obfs0 = "obfs=over-tls, " + tcert + ", " + tls13;
|
||||
uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : "";
|
||||
host0 = jsonl.host && jsonl.host != "" ? ", obfs-host=" + jsonl.host : "";
|
||||
obfsi.push(obfs0 + host0)
|
||||
return obfsi.join(", ")
|
||||
} else if(jsonl.net){ // 过滤掉 h2/http 等类型
|
||||
return "NOT-SUPPORTTED"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user