mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Set close and delete unknown packets - helps with DDOS atack.
Print ip address and port for unknown packets(if debug mode on) - helps determine the ip address of the attacking. --HG-- branch : trunk
This commit is contained in:
@@ -297,7 +297,8 @@ void AuthSocket::OnRead()
|
||||
///- Report unknown commands in the debug log
|
||||
if (i == AUTH_TOTAL_COMMANDS)
|
||||
{
|
||||
DEBUG_LOG("[Auth] got unknown packet %u", (uint32)_cmd);
|
||||
DEBUG_LOG("[Auth] got unknown packet from '%s:%d'", GetRemoteAddress().c_str(), GetRemotePort());
|
||||
SetCloseAndDelete();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user