Merge pull request #1904 from hex2tan/master

fixed add new vmess user bug
pull/1981/head
Kslr 5 years ago committed by GitHub
commit 876e2fcc73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,11 +47,11 @@ func newUserByEmail(config *DefaultConfig) *userByEmail {
func (v *userByEmail) addNoLock(u *protocol.MemoryUser) bool {
email := strings.ToLower(u.Email)
user, found := v.cache[email]
_, found := v.cache[email]
if found {
return false
}
v.cache[email] = user
v.cache[email] = u
return true
}

Loading…
Cancel
Save