fix: Fixes crashing due to bad packet assumptions. (#1829)
### Summary - Fixes various exploits that can crash the shard when the client misbehaves. - Clients will now be disconnected if they send packets that are marked as out of game only (new flag), while they are in-game. > [!Note] > **Developer Note** > Added an `OutOfGameOnly` which should be used to flag packets as only available out of the game. > This is the opposite of, yet not the converse to `InGameOnly`.
This commit is contained in:
parent
2429b00638
commit
6f444488a5
10 changed files with 113 additions and 46 deletions
|
|
@ -26,7 +26,7 @@ public static class IncomingItemPackets
|
|||
public static unsafe void Configure()
|
||||
{
|
||||
IncomingPackets.Register(0x07, 7, true, &LiftReq);
|
||||
IncomingPackets.Register(new ContainerGridPacketHandler(0x08, 14, true, &DropReq));
|
||||
IncomingPackets.Register(new ContainerGridPacketHandler(0x08, 14, &DropReq));
|
||||
IncomingPackets.Register(0x13, 10, true, &EquipReq);
|
||||
IncomingPackets.Register(0xEC, 0, false, &EquipMacro);
|
||||
IncomingPackets.Register(0xED, 0, false, &UnequipMacro);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue