This commit is contained in:
Atlante45 2016-07-08 16:00:08 -07:00
parent b665f38c1f
commit f0fcb94a6a

View file

@ -513,14 +513,14 @@ 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";
qWarning() << "IGNORING DomainList packet while not connected 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;
QUuid domainHandlerUUID = _domainHandler.getUUID();
QUuid messageSourceUUID = message->getSourceID();
if (!domainHandlerUUID.isNull() && domainHandlerUUID != messageSourceUUID) {
qWarning() << "IGNORING DomainList packet from" << messageSourceUUID << "while connected to" << domainHandlerUUID;
return;
}