mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-11 07:13:38 +00:00
Merge pull request #1904 from hex2tan/master
fixed add new vmess user bug
This commit is contained in:
commit
876e2fcc73
@ -47,11 +47,11 @@ func newUserByEmail(config *DefaultConfig) *userByEmail {
|
|||||||
|
|
||||||
func (v *userByEmail) addNoLock(u *protocol.MemoryUser) bool {
|
func (v *userByEmail) addNoLock(u *protocol.MemoryUser) bool {
|
||||||
email := strings.ToLower(u.Email)
|
email := strings.ToLower(u.Email)
|
||||||
user, found := v.cache[email]
|
_, found := v.cache[email]
|
||||||
if found {
|
if found {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
v.cache[email] = user
|
v.cache[email] = u
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user