mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-02 07:25:19 -05:00
Added TestsEnabled Settings to enable VMessAEAD test
This commit is contained in:
@@ -16,6 +16,8 @@ type MemoryAccount struct {
|
||||
AlterIDs []*protocol.ID
|
||||
// Security type of the account. Used for client connections.
|
||||
Security protocol.SecurityType
|
||||
|
||||
TestsEnabled string
|
||||
}
|
||||
|
||||
// AnyValidID returns an ID that is either the main ID or one of the alternative IDs if any.
|
||||
@@ -44,8 +46,9 @@ func (a *Account) AsAccount() (protocol.Account, error) {
|
||||
}
|
||||
protoID := protocol.NewID(id)
|
||||
return &MemoryAccount{
|
||||
ID: protoID,
|
||||
AlterIDs: protocol.NewAlterIDs(protoID, uint16(a.AlterId)),
|
||||
Security: a.SecuritySettings.GetSecurityType(),
|
||||
ID: protoID,
|
||||
AlterIDs: protocol.NewAlterIDs(protoID, uint16(a.AlterId)),
|
||||
Security: a.SecuritySettings.GetSecurityType(),
|
||||
TestsEnabled: a.TestsEnabled,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user