From 100de12c21fade142359524b97e819fd0a93eb1e Mon Sep 17 00:00:00 2001 From: cubemaze Date: Sun, 6 Aug 2023 15:34:12 +0800 Subject: [PATCH] fix: bug --- core/sing/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sing/user.go b/core/sing/user.go index cfab779..a90707d 100644 --- a/core/sing/user.go +++ b/core/sing/user.go @@ -49,7 +49,7 @@ func (b *Box) AddUsers(p *core.AddUsersParams) (added int, err error) { } func (b *Box) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64) { - if v, ok := b.hookServer.Hooker().counter.Load(tag); ok { + if v, ok := b.hookServer.counter.Load(tag); ok { c := v.(*counter.TrafficCounter) up = c.GetUpCount(uuid) down = c.GetDownCount(uuid)