修复MAP未初始化

This commit is contained in:
wyx2685 2024-08-31 17:19:13 +09:00
parent c6d48e1edf
commit 12fbcb1460
No known key found for this signature in database
GPG Key ID: 8827A30FF1DB1379

View File

@ -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 {