Skip to content

Commit

Permalink
修复MAP未初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
wyx2685 committed Aug 31, 2024
1 parent c6d48e1 commit 12fbcb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions limiter/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func AddLimiter(tag string, l *conf.LimitConfig, users []panel.UserInfo, aliveLi
ConnLimiter: NewConnLimiter(l.ConnLimit, l.IPLimit, l.EnableRealtime),
SpeedLimiter: new(sync.Map),
AliveList: aliveList,
OldUserOnline: make(map[string]int),
}
uuidmap := make(map[string]int)
for i := range users {
Expand Down

0 comments on commit 12fbcb1

Please sign in to comment.