summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 18:27:42 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 18:27:42 -0700
commit496109fdcc5fc1f38ffbc561aceab8e8bfece03a (patch)
tree083076ebbc7798a649296dbd72fa771361c5fb60 /node/Peer.cpp
parentaad344bb843c74a5ec8cdf0e8fb626cb6feb4e0c (diff)
downloadinfinitytier-496109fdcc5fc1f38ffbc561aceab8e8bfece03a.tar.gz
infinitytier-496109fdcc5fc1f38ffbc561aceab8e8bfece03a.zip
Announce multicast group changes on network rescanMulticastGroups()
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 5f27da3f..8012c5ff 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -113,10 +113,11 @@ void Peer::receive(
}
}
- // Announce multicast groups of interest to direct peers if they are
- // considered authorized members of a given network. Also announce to
- // supernodes and network controllers. TODO: the former may go
- // obsolete with time as network controllers take over this role.
+ /* Announce multicast groups of interest to direct peers if they are
+ * considered authorized members of a given network. Also announce to
+ * supernodes and network controllers. The other place this is done
+ * is in rescanMulticastGroups() in Network, but that only sends something
+ * if a network's multicast groups change. */
if ((now - _lastAnnouncedTo) >= ((ZT_MULTICAST_LIKE_EXPIRE / 2) - 1000)) {
_lastAnnouncedTo = now;