mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 21:53:41 +00:00
only allow one ip per game
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user