Merge pull request #7 from stitchrs/dev

fix: shadowsocks
This commit is contained in:
Yuzuki
2023-08-07 09:33:36 +08:00
committed by GitHub
2 changed files with 19 additions and 12 deletions

View File

@@ -50,7 +50,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)