From a55cf1d0bff20374d3fcd3754c43b05218446e63 Mon Sep 17 00:00:00 2001 From: pocketW <104479902+pocketW@users.noreply.github.com> Date: Thu, 15 Dec 2022 22:21:52 +1100 Subject: [PATCH] fix: email inconsistent --- proxy/shadowsocks_2022/inbound_multi.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/shadowsocks_2022/inbound_multi.go b/proxy/shadowsocks_2022/inbound_multi.go index b9a258f6..91342c76 100644 --- a/proxy/shadowsocks_2022/inbound_multi.go +++ b/proxy/shadowsocks_2022/inbound_multi.go @@ -97,7 +97,7 @@ func (i *MultiUserInbound) AddUser(ctx context.Context, u *protocol.MemoryUser) } i.users = append(i.users, &User{ Key: account.Key, - Email: strings.ToLower(account.Email), + Email: account.Email, Level: account.Level, }) @@ -120,7 +120,6 @@ func (i *MultiUserInbound) RemoveUser(ctx context.Context, email string) error { i.Lock() defer i.Unlock() - email = strings.ToLower(email) idx := -1 for ii, u := range i.users { if strings.EqualFold(u.Email, email) {