Don't process DomainList packets from 2 DS

case 1037
This commit is contained in:
Atlante45 2016-07-08 15:15:25 -07:00
parent 97da515585
commit b665f38c1f

View file

@ -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;