1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

auto user creation for dynamic port

This commit is contained in:
v2ray
2016-02-25 14:38:41 +01:00
parent b3f547dc90
commit 9f50692d15
9 changed files with 90 additions and 21 deletions

View File

@@ -23,7 +23,7 @@ func (u *User) UnmarshalJSON(data []byte) error {
if err != nil {
return err
}
*u = *NewUser(NewID(id), UserLevel(rawUserValue.LevelByte), rawUserValue.AlterIdCount)
*u = *NewUser(NewID(id), UserLevel(rawUserValue.LevelByte), rawUserValue.AlterIdCount, rawUserValue.EmailString)
return nil
}