mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 01:18:17 +00:00
Add some sanity checking for stream_parser so it's less likely to pickup other protocols as an everquest protocol.
This commit is contained in:
@@ -87,6 +87,12 @@ namespace StreamParser.Common.Daybreak
|
||||
}
|
||||
else if (data[0] == 0 && data[1] == Opcode.SessionRequest)
|
||||
{
|
||||
if(data.Length != 24)
|
||||
{
|
||||
_logger.LogTrace("Tossing packet, {0} was not the right size for a SessionRequest", data.Length);
|
||||
return;
|
||||
}
|
||||
|
||||
c = new Connection(this, srcAddr, srcPort, dstAddr, dstPort);
|
||||
_connections.Add(c);
|
||||
c.ProcessPacket(srcAddr, srcPort, packetTime, data);
|
||||
|
||||
Reference in New Issue
Block a user