From 0392312b7440fedf53ff17ee31a579aaafda6b3a Mon Sep 17 00:00:00 2001 From: Kslr Date: Sat, 27 Jun 2020 21:33:45 +0800 Subject: [PATCH] fix undefined: u --- proxy/vmess/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/vmess/validator.go b/proxy/vmess/validator.go index 817ec5e6..76602c4a 100644 --- a/proxy/vmess/validator.go +++ b/proxy/vmess/validator.go @@ -190,7 +190,7 @@ func (v *TimedUserValidator) Remove(email string) bool { if strings.EqualFold(v.users[i].user.Email, email) { idx = i var cmdkeyfl [16]byte - copy(cmdkeyfl[:], u.user.Account.(*MemoryAccount).ID.CmdKey()) + copy(cmdkeyfl[:], v.users[i].user.Account.(*MemoryAccount).ID.CmdKey()) v.aeadDecoderHolder.RemoveUser(cmdkeyfl) break }