mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-03-24 12:05:10 +00:00
Ignore unsupported node types and notify
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2026-02-06 16:40⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2026-02-11 11:51⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/ShawnKOP_Parser_Bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/ShawnKOP_Parser_Bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -3309,13 +3309,19 @@ function Clash2QX(cnt) {
|
|||||||
node = CVL2QX(node)
|
node = CVL2QX(node)
|
||||||
} else { // not support type
|
} else { // not support type
|
||||||
PNS = PNS+1
|
PNS = PNS+1
|
||||||
|
if (Pdbg==1) { // 通知提示
|
||||||
|
$notify("不支持该类型节点,已忽略",typecc,JSON.stringify(node))
|
||||||
|
}
|
||||||
|
typecc="NS"
|
||||||
}
|
}
|
||||||
node = Pudp0 != 0 ? XUDP(node,Pudp0) : node
|
node = Pudp0 != 0 ? XUDP(node,Pudp0) : node
|
||||||
node = Ptfo0 != 0 ? XTFO(node,Ptfo0) : node
|
node = Ptfo0 != 0 ? XTFO(node,Ptfo0) : node
|
||||||
|
if (typecc!="NS") {
|
||||||
node=node.replace(/^([^,]*)\s+/g, (match, p1) => { // 某些ipv6节点空格问题
|
node=node.replace(/^([^,]*)\s+/g, (match, p1) => { // 某些ipv6节点空格问题
|
||||||
return p1.replace(/\s+/g, '');
|
return p1.replace(/\s+/g, '');
|
||||||
});
|
});
|
||||||
nodelist.push(node)
|
nodelist.push(node)
|
||||||
|
}
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
$notify(`⚠️该节点解析错误, 暂时已忽略处理`,`可点击通知并发送链接反馈至 bot`,JSON.stringify(node),bug_link )
|
$notify(`⚠️该节点解析错误, 暂时已忽略处理`,`可点击通知并发送链接反馈至 bot`,JSON.stringify(node),bug_link )
|
||||||
$notify(`⚠️错误内容如下`,`可复制错误内容到反馈 bot`,JSON.stringify(node)+"\n\n"+e)
|
$notify(`⚠️错误内容如下`,`可复制错误内容到反馈 bot`,JSON.stringify(node)+"\n\n"+e)
|
||||||
|
|||||||
Reference in New Issue
Block a user