mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
fix speed limiter not clear
This commit is contained in:
@@ -74,14 +74,14 @@ func (p *Core) GetUserTraffic(email string) (up int64, down int64) {
|
||||
return up, down
|
||||
}
|
||||
|
||||
func (p *Core) ListOnlineIp(tag string) ([]dispatcher.UserIp, error) {
|
||||
return p.dispatcher.Limiter.GetOnlineUserIp(tag)
|
||||
func (p *Core) ListOnlineIp(tag string) ([]dispatcher.UserIpList, error) {
|
||||
return p.dispatcher.Limiter.ListOnlineUserIp(tag)
|
||||
}
|
||||
|
||||
func (p *Core) UpdateOnlineIp(tag string, ips []dispatcher.UserIp) {
|
||||
func (p *Core) UpdateOnlineIp(tag string, ips []dispatcher.UserIpList) {
|
||||
p.dispatcher.Limiter.UpdateOnlineUserIP(tag, ips)
|
||||
}
|
||||
|
||||
func (p *Core) ClearOnlineIp(tag string) {
|
||||
p.dispatcher.Limiter.ClearOnlineUserIP(tag)
|
||||
p.dispatcher.Limiter.ClearOnlineUserIpAndSpeedLimiter(tag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user