mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 08:56:36 +02:00
fix verification of source but unverified packets
This commit is contained in:
parent
432048addf
commit
c4a97de985
1 changed files with 4 additions and 2 deletions
|
@ -180,6 +180,7 @@ bool LimitedNodeList::packetSourceAndHashMatch(const NLPacket& packet, SharedNod
|
|||
if (NON_SOURCED_PACKETS.contains(packet.getType())) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
// figure out which node this is from
|
||||
matchingNode = nodeWithUUID(packet.getSourceID());
|
||||
|
||||
|
@ -199,9 +200,10 @@ bool LimitedNodeList::packetSourceAndHashMatch(const NLPacket& packet, SharedNod
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
} else {
|
||||
static QString repeatedMessage
|
||||
= LogHandler::getInstance().addRepeatedMessageRegex("Packet of type \\d+ received from unknown node with UUID");
|
||||
|
|
Loading…
Reference in a new issue