mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:16:00 +02:00
fix a bug in version mismatched packets
This commit is contained in:
parent
988c98d4d7
commit
37d7872677
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ bool NodeList::packetVersionAndHashMatch(const QByteArray& packet) {
|
||||||
if (packet[1] != versionForPacketType(packetTypeForPacket(packet))
|
if (packet[1] != versionForPacketType(packetTypeForPacket(packet))
|
||||||
&& packetTypeForPacket(packet) != PacketTypeStunResponse) {
|
&& packetTypeForPacket(packet) != PacketTypeStunResponse) {
|
||||||
PacketType mismatchType = packetTypeForPacket(packet);
|
PacketType mismatchType = packetTypeForPacket(packet);
|
||||||
int numPacketTypeBytes = arithmeticCodingValueFromBuffer(packet.data());
|
int numPacketTypeBytes = numBytesArithmeticCodingFromBuffer(packet.data());
|
||||||
|
|
||||||
qDebug() << "Packet version mismatch on" << packetTypeForPacket(packet) << "- Sender"
|
qDebug() << "Packet version mismatch on" << packetTypeForPacket(packet) << "- Sender"
|
||||||
<< uuidFromPacketHeader(packet) << "sent" << qPrintable(QString::number(packet[numPacketTypeBytes])) << "but"
|
<< uuidFromPacketHeader(packet) << "sent" << qPrintable(QString::number(packet[numPacketTypeBytes])) << "but"
|
||||||
|
|
Loading…
Reference in a new issue