mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
Update resource-parser.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-05-12 17:50⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-05-15 08:50⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_Parser_Bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_Parser_Bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -2426,6 +2426,8 @@ function YAMLFix(cnt){
|
|||||||
//2022-05-11 增加⬇️
|
//2022-05-11 增加⬇️
|
||||||
cnt = cnt.replace(/\n\s{4}headers/g,"\n headers").replace(/\n\s{6}(H|h)ost/g,"\n Host").replace(/\t/g,"")
|
cnt = cnt.replace(/\n\s{4}headers/g,"\n headers").replace(/\n\s{6}(H|h)ost/g,"\n Host").replace(/\t/g,"")
|
||||||
console.log("after-fix\n"+cnt)
|
console.log("after-fix\n"+cnt)
|
||||||
|
//$notify("After-Fix","this is", cnt)
|
||||||
|
|
||||||
return cnt
|
return cnt
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2547,7 +2549,7 @@ function CV2QX(cnt) {
|
|||||||
}
|
}
|
||||||
console.log(obfs)
|
console.log(obfs)
|
||||||
ohost = cnt["ws-headers"]? "obfs-host=" + cnt["ws-headers"]["Host"] : ""
|
ohost = cnt["ws-headers"]? "obfs-host=" + cnt["ws-headers"]["Host"] : ""
|
||||||
ohost= cnt["ws-opts"]? "obfs-host=" + cnt["ws-opts"]["Host"] : ohost
|
ohost= cnt["ws-opts"]? "obfs-host=" + cnt["ws-opts"]["headers"]["Host"] : ohost
|
||||||
ohost = cnt["servername"]? "obfs-host=" + cnt["servername"] : ohost
|
ohost = cnt["servername"]? "obfs-host=" + cnt["servername"] : ohost
|
||||||
console.log(ohost)
|
console.log(ohost)
|
||||||
ouri = cnt["ws-path"]? "obfs-uri="+cnt["ws-path"] : ""
|
ouri = cnt["ws-path"]? "obfs-uri="+cnt["ws-path"] : ""
|
||||||
|
|||||||
Reference in New Issue
Block a user