Feature: add vmess aead header support

This commit is contained in:
Dreamacro
2021-03-30 17:34:16 +08:00
parent 7ee49f5171
commit 109bfcb0f9
4 changed files with 196 additions and 24 deletions

View File

@ -246,6 +246,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
Security: security,
HostName: option.Server,
Port: strconv.Itoa(option.Port),
IsAead: option.AlterID == 0,
})
if err != nil {
return nil, err