mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
17 lines
337 B
Go
17 lines
337 B
Go
package limiter
|
|
|
|
import log "github.com/sirupsen/logrus"
|
|
|
|
func ClearOnlineIP() error {
|
|
log.WithField("Type", "Limiter").
|
|
Debug("Clear online ip...")
|
|
limitLock.RLock()
|
|
for _, l := range limiter {
|
|
l.ConnLimiter.ClearOnlineIP()
|
|
}
|
|
limitLock.RUnlock()
|
|
log.WithField("Type", "Limiter").
|
|
Debug("Clear online ip done")
|
|
return nil
|
|
}
|