Temp: log all inbound opcodes (including unrecognized)
Build (Windows x64) / build (push) Canceled after 0s
Build (Windows x64) / linux-build (push) Canceled after 0s

This commit is contained in:
devbox
2026-08-15 17:58:15 +10:00
parent 11032daf13
commit 4fbff47d62
+1
View File
@@ -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: {})",