Sanae6 / SmoOnlineServer

Official server for Super Mario Odyssey: Online
https://discord.gg/jYCueK2BqD
103 stars 24 forks source link

only broadcast the DisconnectPacket if the client was connected #39

Closed Istador closed 1 year ago

Istador commented 1 year ago

Otherwise port scans, banned players or clients failing to initialize correctly, will cause the server to send unnecessary packets to all connected clients.

They currently are informed about a disconnect for a client that hasn't even connected correctly.

(cherry picked from commit 4b04a3d5bec1a86cacda20da13dd41ebbdb05a88)