From 20278bb9e47ec0cc16619d281224473f90f7b048 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 7 Sep 2016 15:34:34 -0700 Subject: [PATCH] Also send MULTICAST_LIKEs to controllers. --- node/Network.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/Network.cpp b/node/Network.cpp index 7c2a4084b..4fd88f67d 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -1237,6 +1237,13 @@ void Network::_announceMulticastGroups(const MulticastGroup *const onlyThis) } _announceMulticastGroupsTo(*a,groups); } + + // Announce to controller, which does not need our COM since it obviously + // knows if we are a member. Of course if we already did or are going to + // below then we can skip it here. + const Address c(controller()); + if ( (std::find(upstreams.begin(),upstreams.end(),c) == upstreams.end()) && (!_memberships.contains(c)) ) + _announceMulticastGroupsTo(c,groups); } // Make sure that all "network anchors" have Membership records so we will