1
0
mirror of https://github.com/wyx2685/V2bX.git synced 2025-03-10 14:48:12 -04:00
V2bX/limiter/clear.go

17 lines
337 B
Go
Raw Normal View History

package limiter
2023-06-29 23:07:27 -04:00
import log "github.com/sirupsen/logrus"
func ClearOnlineIP() error {
2023-06-29 23:07:27 -04:00
log.WithField("Type", "Limiter").
Debug("Clear online ip...")
limitLock.RLock()
for _, l := range limiter {
l.ConnLimiter.ClearOnlineIP()
}
limitLock.RUnlock()
2023-06-29 23:07:27 -04:00
log.WithField("Type", "Limiter").
Debug("Clear online ip done")
return nil
}