mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Add report unknown packets in the error log and close this packets.
--HG-- branch : trunk
This commit is contained in:
@@ -261,9 +261,13 @@ void AuthSocket::OnRead()
|
||||
}
|
||||
}
|
||||
|
||||
///- Report unknown commands in the debug log
|
||||
// Report unknown packets in the error log
|
||||
if (i == AUTH_TOTAL_COMMANDS)
|
||||
{
|
||||
sLog.outError("[Auth] got unknown packet from '%s'", socket().get_remote_address().c_str());
|
||||
socket().shutdown();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user