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:
n0n4m3
2010-01-12 21:08:40 +03:00
parent 943b3195da
commit aeb008d4ef

View File

@@ -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;
}
}