mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 21:25:09 +00:00
fix udp/tfo switch bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-09-13 11:29⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-09-16 11:29⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -1275,19 +1275,23 @@ function emoji_handle(servers, Pemoji) {
|
|||||||
function Surge2QX(conf) {
|
function Surge2QX(conf) {
|
||||||
var QXlist = conf.split("\n").map(isSurge).filter(Boolean)
|
var QXlist = conf.split("\n").map(isSurge).filter(Boolean)
|
||||||
var Nlist = []
|
var Nlist = []
|
||||||
|
var node=""
|
||||||
for (var i = 0; i < QXlist.length; i++) {
|
for (var i = 0; i < QXlist.length; i++) {
|
||||||
var cnt = QXlist[i];
|
var cnt = QXlist[i];
|
||||||
if (cnt.split("=")[1].split(",")[0].indexOf("trojan") != -1) {
|
if (cnt.split("=")[1].split(",")[0].indexOf("trojan") != -1) {
|
||||||
Nlist.push(Strojan2QX(cnt))//surge 3的trojan
|
node = Strojan2QX(cnt)//surge 3的trojan
|
||||||
} else if (cnt.split("=")[1].split(",")[0].indexOf("http") != -1) {
|
} else if (cnt.split("=")[1].split(",")[0].indexOf("http") != -1) {
|
||||||
Nlist.push(Shttp2QX(cnt)) //surge 3的http
|
node = Shttp2QX(cnt) //surge 3的http
|
||||||
} else if (cnt.split("=")[1].split(",")[0].indexOf("vmess") != -1) {
|
} else if (cnt.split("=")[1].split(",")[0].indexOf("vmess") != -1) {
|
||||||
Nlist.push(SVmess2QX(cnt)) //surge 3的Vmess
|
node = SVmess2QX(cnt) //surge 3的Vmess
|
||||||
} else if (cnt.split("=")[1].split(",")[0].indexOf("ss") != -1) {
|
} else if (cnt.split("=")[1].split(",")[0].indexOf("ss") != -1) {
|
||||||
Nlist.push(SSS2QX(cnt)) //surge 3的SS
|
node = SSS2QX(cnt) //surge 3的SS
|
||||||
} else if (cnt.split("=")[1].split(",")[0].indexOf("custom") != -1) {
|
} else if (cnt.split("=")[1].split(",")[0].indexOf("custom") != -1) {
|
||||||
Nlist.push(SCT2QX(cnt)) //surge2写法
|
node = SCT2QX(cnt) //surge2写法
|
||||||
}
|
}
|
||||||
|
node = Pudp0 != 0 ? XUDP(node,Pudp0) : node
|
||||||
|
node = Ptfo0 != 0 ? XTFO(node,Ptfo0) : node
|
||||||
|
Nlist.push(node)
|
||||||
}
|
}
|
||||||
return (Nlist)
|
return (Nlist)
|
||||||
}
|
}
|
||||||
@@ -1492,6 +1496,8 @@ function Clash2QX(cnt) {
|
|||||||
} else if (typec == "http"){
|
} else if (typec == "http"){
|
||||||
node = CH2QX(node)
|
node = CH2QX(node)
|
||||||
}
|
}
|
||||||
|
node = Pudp0 != 0 ? XUDP(node,Pudp0) : node
|
||||||
|
node = Ptfo0 != 0 ? XTFO(node,Ptfo0) : node
|
||||||
nodelist.push(node)
|
nodelist.push(node)
|
||||||
}
|
}
|
||||||
return nodelist.join("\n")
|
return nodelist.join("\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user