From 1791a1c1fea0d7e4d8c3f403fee74863349087b7 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 15 Nov 2016 10:15:17 -0800 Subject: [PATCH] never send agents to other agents --- domain-server/src/DomainServer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/domain-server/src/DomainServer.cpp b/domain-server/src/DomainServer.cpp index 5208cb2326..7d031c5be5 100644 --- a/domain-server/src/DomainServer.cpp +++ b/domain-server/src/DomainServer.cpp @@ -950,7 +950,9 @@ void DomainServer::sendDomainListToNode(const SharedNodePointer& node, const Hif if (nodeData->isAuthenticated()) { // if this authenticated node has any interest types, send back those nodes as well limitedNodeList->eachNode([&](const SharedNodePointer& otherNode){ - if (otherNode->getUUID() != node->getUUID() && nodeInterestSet.contains(otherNode->getType())) { + if (otherNode->getUUID() != node->getUUID() + && nodeInterestSet.contains(otherNode->getType()) + && (node->getType() != NodeType::Agent || otherNode->getType() != NodeType::Agent)) { // since we're about to add a node to the packet we start a segment domainListPackets->startSegment();