only allow one ip per game

This commit is contained in:
Evan
2025-02-21 11:46:12 -08:00
parent a072a24433
commit 951d708763
+1 -1
View File
@@ -91,7 +91,7 @@ export class GameServer {
});
// Remove stale client if this is a reconnect
const existing = this.activeClients.find(
(c) => c.clientID == client.clientID,
(c) => c.clientID == client.clientID || client.ip == c.ip,
);
if (existing != null) {
existing.ws.removeAllListeners("message");