Skip to content

Commit

Permalink
Merge pull request #1904 from hex2tan/master
Browse files Browse the repository at this point in the history
fixed add new vmess user bug
  • Loading branch information
kslr committed Oct 27, 2019
2 parents 5bb4efd + 3d63ec4 commit 876e2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/vmess/inbound/inbound.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 876e2fc

Please sign in to comment.