diff --git a/server/gameserver/GGListener.cc b/server/gameserver/GGListener.cc index c73fa903..af2a2404 100644 --- a/server/gameserver/GGListener.cc +++ b/server/gameserver/GGListener.cc @@ -42,6 +42,7 @@ public: is_activite = true; #endif bool warning = false; + while (buflen - offset >= sizeof(f8::WSProxyPackHead_C)) { f8::WSProxyPackHead_C* p = (f8::WSProxyPackHead_C*)&buf[offset]; if (p->magic_code == f8::MAGIC_CODE) { @@ -66,7 +67,7 @@ public: } if (warning) { - f8::UdpLog::Instance()->Warning("收到client非法数据包", {}); + f8::UdpLog::Instance()->Warning("收到client非法数据包 buflen:%d", {buflen}); } }