From 1a38fc6fb7f59e0f5de90f43406ff73f05741c10 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Sun, 10 Jul 2022 08:26:55 +0800 Subject: [PATCH] miinor bug fixed --- Scripts/resource-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 2e5c2c3..ce0b564 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-07-08 15:05⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-07-10 08:25⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -877,8 +877,8 @@ function HOST_Handle(cnt,phost) { cnt = cnt.replace(/host\s*\=(.*?)\,/,phost) } else { // 为已有的替换,为没有的增加 obfs-host\tls-host phost=phost.split("☠️")[0] - if (/-host\s*\=/.test(cnt)) {// 如已有host参数 - cnt = cnt.replace(/host\s*\=(.*?)\,/,phost) + if (/-host\s*\=/.test(cnt)) {// 如已有 host 参数 + cnt = cnt.replace(/host\s*\=(.*?)\,/,phost+", ") } else if (/over-tls\s*\=\s*true/.test(cnt)) { // 如无host,但可以增加 cnt = cnt+", tls-"+phost } else if (/obfs\s*\=/.test(cnt)) {