Temp: log all inbound opcodes (including unrecognized)
This commit is contained in:
@@ -401,6 +401,7 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
|
|||||||
|
|
||||||
WorldPacket packet(std::move(_packetBuffer).Release(), GetConnectionType());
|
WorldPacket packet(std::move(_packetBuffer).Release(), GetConnectionType());
|
||||||
OpcodeClient opcode = packet.read<OpcodeClient>();
|
OpcodeClient opcode = packet.read<OpcodeClient>();
|
||||||
|
TC_LOG_ERROR("network", "WORLD IN raw opcode 0x{:X} ({} bytes)", uint32(opcode), packet.size());
|
||||||
if (!opcodeTable.IsValid(opcode))
|
if (!opcodeTable.IsValid(opcode))
|
||||||
{
|
{
|
||||||
TC_LOG_ERROR("network", "WorldSocket::ReadHeaderHandler(): client {} sent wrong opcode (opcode: {})",
|
TC_LOG_ERROR("network", "WorldSocket::ReadHeaderHandler(): client {} sent wrong opcode (opcode: {})",
|
||||||
|
|||||||
Reference in New Issue
Block a user