mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 05:53:29 +02:00
Don't process DomainList packets from 2 DS
case 1037
This commit is contained in:
parent
97da515585
commit
b665f38c1f
1 changed files with 7 additions and 0 deletions
|
@ -513,9 +513,16 @@ void NodeList::processDomainServerConnectionTokenPacket(QSharedPointer<ReceivedM
|
|||
|
||||
void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message) {
|
||||
if (_domainHandler.getSockAddr().isNull()) {
|
||||
qWarning() << "IGNORING DomainList packet while not connect to a Domain Server";
|
||||
// refuse to process this packet if we aren't currently connected to the DS
|
||||
return;
|
||||
}
|
||||
auto domainUuid = _domainHandler.getUUID();
|
||||
auto messageSourceUuid = message->getSourceID();
|
||||
if (!domainUuid.isNull() && domainUuid != messageSourceUuid) {
|
||||
qWarning() << "IGNORING DomainList packet from" << messageSourceUuid << "while connected to" << domainUuid;
|
||||
return;
|
||||
}
|
||||
|
||||
// this is a packet from the domain server, reset the count of un-replied check-ins
|
||||
_numNoReplyDomainCheckIns = 0;
|
||||
|
|
Loading…
Reference in a new issue