fixup! add log message when removing stale client

This commit is contained in:
Sebastian Mark 2024-11-21 13:07:59 +01:00
parent 0b6b680cce
commit d0c3f263c1

View file

@ -19,7 +19,7 @@ func RemoveStaleClients() {
if !sendPing(client) || isStale(client) {
client.Conn.Close()
delete(Clients, client.Conn.LocalAddr())
helper.Logger.Info("Removed stale client", "host", client.RealIP, "clients", len(Clients))
helper.Logger.Info("Removed stale client", "host", client.RealIP)
}
}
mu.Unlock()