1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00

use uuid as struct

This commit is contained in:
Darien Raymond
2018-01-18 23:25:48 +01:00
parent 14176a340d
commit 0e01e28278
8 changed files with 30 additions and 23 deletions

View File

@@ -53,8 +53,9 @@ func (v *userByEmail) Get(email string) (*protocol.User, bool) {
v.Lock()
user, found = v.cache[email]
if !found {
id := uuid.New()
account := &vmess.Account{
Id: uuid.New().String(),
Id: id.String(),
AlterId: uint32(v.defaultAlterIDs),
}
user = &protocol.User{