From 7b5d027412da4215184bc581a77d95b320bcfd8e Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Tue, 18 Oct 2022 10:08:23 +0800 Subject: [PATCH] fix panic bug --- core/app/dispatcher/limiter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/app/dispatcher/limiter.go b/core/app/dispatcher/limiter.go index 5b8e840..966be04 100644 --- a/core/app/dispatcher/limiter.go +++ b/core/app/dispatcher/limiter.go @@ -55,9 +55,9 @@ func (l *Limiter) UpdateInboundLimiter(tag string, deleted []panel.UserInfo) err inboundInfo := value.(*InboundInfo) for i := range deleted { inboundInfo.UserLimitInfo.Delete(fmt.Sprintf("%s|%s|%d", tag, - (deleted)[i].V2rayUser.Email, (deleted)[i].UID)) + (deleted)[i].GetUserEmail(), (deleted)[i].UID)) inboundInfo.SpeedLimiter.Delete(fmt.Sprintf("%s|%s|%d", tag, - (deleted)[i].V2rayUser.Email, (deleted)[i].UID)) // Delete limiter bucket + (deleted)[i].GetUserEmail(), (deleted)[i].UID)) // Delete limiter bucket } } else { return fmt.Errorf("no such inbound in limiter: %s", tag)