diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index fcdf482..017cec3 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-05-08 22:20⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-05-10 10:00⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_Parser_Bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -1695,7 +1695,7 @@ function TJ2QX(subs, Pudp, Ptfo, Pcert0, PTls13) { pudp = Pudp == 1 ? "udp-relay=false" : "udp-relay=false"; ptfo = Ptfo == 1 ? "fast-open=true" : "fast-open=false"; ptfo = cnt.indexOf("tfo=1") != -1? "fast-open=true" : ptfo - tag = cnt.indexOf("#") != -1 ? "tag=" + decodeURIComponent(cnt.split("#")[1]) : "tag= [trojan]" + ip + tag = cnt.indexOf("#") != -1 ? "tag=" + decodeURIComponent(cnt.split("#").slice(-1)[0]) : "tag= [trojan]" + ip if (cnt.indexOf("&plugin=obfs-local")!=-1) {//小火箭内的websocket写法 obfs = cnt.indexOf("obfs=websocket") != -1? "obfs=wss" : obfs thost=cnt.indexOf("obfs-host=") == -1? thost : "obfs-host=" + decodeURIComponent(cnt.split("obfs-host=")[1].split(";")[0].split("#")[0])