MCPcopy Index your code
hub / github.com/Moli-X/Resources / AeadVmess

Function AeadVmess

Script/Parser.js:1527–1541  ·  view source on GitHub ↗
(cnt,aeadp)

Source from the content-addressed store, hash-verified

1525
1526// Vmess Aead 关闭-默认开启
1527function AeadVmess(cnt,aeadp) {
1528 let paead = aeadp == -1? "aead=false" : "aead=true"
1529 if (/^vmess\s*\=/.test(cnt)) {
1530 if (/aead\s*\=/.test(cnt)) {
1531 cnt = cnt.replace(/aead\s*\=.*\,/,paead+",")
1532 } else {
1533 cnts = cnt.split(",")
1534 cnts.push(paead)
1535 //console.log(cnts)
1536 cnt=cnts.join(", ")
1537 }
1538
1539 }
1540 return cnt
1541}
1542
1543//新版本tls 的检验(存在sha256 参数时)
1544function TLS_Check(cnt) {

Callers 1

Subs2QXFunction · 0.85

Calls 2

pushMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…