diff options
| author | Kees Bos <k.bos@capitar.com> | 2015-05-06 12:05:20 +0200 |
|---|---|---|
| committer | Kees Bos <k.bos@capitar.com> | 2015-05-06 12:05:20 +0200 |
| commit | a425bbc67301bf486fe5b0aba8adb59ae791403e (patch) | |
| tree | 460b6c5a5c2ed852903fac2a9703c6f06534f79f /node/Peer.cpp | |
| parent | 845955dea53035e8472059ff03feca9f47c0d5fa (diff) | |
| download | infinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.tar.gz infinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.zip | |
Renamed supernode to rootserver
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index d788d006..3093ef41 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -122,16 +122,16 @@ void Peer::received( /* 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. */ + * rootservers and network controllers. */ if ((pathIsConfirmed)&&((now - _lastAnnouncedTo) >= ((ZT_MULTICAST_LIKE_EXPIRE / 2) - 1000))) { _lastAnnouncedTo = now; - const bool isSupernode = RR->topology->isSupernode(_id.address()); + const bool isRootserver = RR->topology->isRootserver(_id.address()); Packet outp(_id.address(),RR->identity.address(),Packet::VERB_MULTICAST_LIKE); const std::vector< SharedPtr<Network> > networks(RR->node->allNetworks()); for(std::vector< SharedPtr<Network> >::const_iterator n(networks.begin());n!=networks.end();++n) { - if ( (isSupernode) || ((*n)->isAllowed(_id.address())) ) { + if ( (isRootserver) || ((*n)->isAllowed(_id.address())) ) { const std::vector<MulticastGroup> mgs((*n)->allMulticastGroups()); for(std::vector<MulticastGroup>::const_iterator mg(mgs.begin());mg!=mgs.end();++mg) { if ((outp.size() + 18) > ZT_UDP_DEFAULT_PAYLOAD_MTU) { |
