diff options
author | n0n4m3 <none@none> | 2010-03-11 15:09:51 +0300 |
---|---|---|
committer | n0n4m3 <none@none> | 2010-03-11 15:09:51 +0300 |
commit | d8db56ec48cfe2df3807724a51e7e89d44292f77 (patch) | |
tree | f067e87a7b2b0552749ff73ee98269f6ac1f62de | |
parent | 4c7e599802996fc5e11d8d6e0f7ca27e02039609 (diff) |
Add report unknown packets in the error log and close this packets.
--HG--
branch : trunk
-rw-r--r-- | src/trinityrealm/AuthSocket.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trinityrealm/AuthSocket.cpp b/src/trinityrealm/AuthSocket.cpp index 956b1fb3f57..ea7a6d6d4c9 100644 --- a/src/trinityrealm/AuthSocket.cpp +++ b/src/trinityrealm/AuthSocket.cpp @@ -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; + } } } |