V2bX/limiter/clear.go
2023-05-17 00:59:30 +08:00

15 lines
294 B
Go

package limiter
import "log"
func ClearPacketOnlineIP() error {
log.Println("Limiter: Clear packet online ip...")
limitLock.RLock()
for _, l := range limiter {
l.ConnLimiter.ClearPacketOnlineIP()
}
limitLock.RUnlock()
log.Println("Limiter: Clear packet online ip done")
return nil
}