aead issue

This commit is contained in:
Shawn
2023-02-23 16:14:45 +08:00
parent b7b7259246
commit 9b3d9eb146
2 changed files with 5 additions and 5 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,5 @@
/** /**
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-02-08 13:15⟧ ☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-02-23 16:15⟧
---------------------------------------------------------- ----------------------------------------------------------
🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot 🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
@@ -1551,7 +1551,7 @@ function Subs2QX(subs, Pudp, Ptfo, Pcert0, PTls13) {
} catch (e) { } catch (e) {
failedList.push(`<<<\nContent: ${list0[i]}\nError: ${e}`) failedList.push(`<<<\nContent: ${list0[i]}\nError: ${e}`)
} }
if (Paead == -1) {node = AeadVmess(node)} // vmess 类型 aead 处理 if (Paead != "") {node = AeadVmess(node,Paead)} // vmess 类型 aead 处理
if (Phost != "") {node = HOST_Handle(node,Phost)} // host 参数修改 if (Phost != "") {node = HOST_Handle(node,Phost)} // host 参数修改
if (Pobfs != "") {node = OBFS_Handle(node,Pobfs)} // obfs 参数修改 if (Pobfs != "") {node = OBFS_Handle(node,Pobfs)} // obfs 参数修改
if (Psession != "") { node = Session_Handle(node,Psession)} // tls-session 参数 if (Psession != "") { node = Session_Handle(node,Psession)} // tls-session 参数
@@ -1580,11 +1580,11 @@ function Subs2QX(subs, Pudp, Ptfo, Pcert0, PTls13) {
} }
// Vmess Aead 关闭-默认开启 // Vmess Aead 关闭-默认开启
function AeadVmess(cnt) { function AeadVmess(cnt,aeadp) {
let paead = "aead=false" let paead = aeadp == -1? "aead=false" : "aead=true"
if (/^vmess\s*\=/.test(cnt)) { if (/^vmess\s*\=/.test(cnt)) {
if (/aead\s*\=/.test(cnt)) { if (/aead\s*\=/.test(cnt)) {
cnt = cnt.replace(/aead\s*\=.*\,/,"aead=false,") cnt = cnt.replace(/aead\s*\=.*\,/,paead+",")
} else { } else {
cnts = cnt.split(",") cnts = cnt.split(",")
cnts.push(paead) cnts.push(paead)