mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Instantly destroy anyone who sigfails
This commit is contained in:
parent
2925843ea2
commit
7889ffd93b
1 changed files with 6 additions and 4 deletions
|
|
@ -4712,10 +4712,12 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||||
{
|
{
|
||||||
if (crypto_eddsa_check(netbuffer->signature[splitnodes], lastReceivedKey[node][splitnodes], message, doomcom->datalength - BASEPACKETSIZE))
|
if (crypto_eddsa_check(netbuffer->signature[splitnodes], lastReceivedKey[node][splitnodes], message, doomcom->datalength - BASEPACKETSIZE))
|
||||||
{
|
{
|
||||||
//CONS_Alert(CONS_ERROR, "SIGFAIL! Packet type %d from node %d player %d\nkey %s size %d\n",
|
CONS_Alert(CONS_ERROR, "SIGFAIL! Packet type %d from node %d player %d\nkey %s size %d\n",
|
||||||
// netbuffer->packettype, node, splitnodes,
|
netbuffer->packettype, node, splitnodes,
|
||||||
// GetPrettyRRID(lastReceivedKey[node][splitnodes], true), doomcom->datalength - BASEPACKETSIZE);
|
GetPrettyRRID(lastReceivedKey[node][splitnodes], true), doomcom->datalength - BASEPACKETSIZE);
|
||||||
//SendKick(netconsole, KICK_MSG_SIGFAIL);
|
SendKick(netconsole, KICK_MSG_SIGFAIL);
|
||||||
|
Net_CloseConnection(node);
|
||||||
|
nodeingame[node] = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue