(cnt,aeadp)
| 1525 | |
| 1526 | // Vmess Aead 关闭-默认开启 |
| 1527 | function 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 参数时) |
| 1544 | function TLS_Check(cnt) { |