mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 05:59:38 +00:00
Protect from unwanted client intents
This commit is contained in:
@@ -197,6 +197,12 @@ export class GameServer {
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (clientMsg.intent.type === "mark_disconnected") {
|
||||
this.log.warn(
|
||||
`Should not receive mark_disconnected intent from client`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
this.addIntent(clientMsg.intent);
|
||||
}
|
||||
if (clientMsg.type === "ping") {
|
||||
|
||||
Reference in New Issue
Block a user