summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-19 12:09:35 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-19 12:09:35 -0700
commit2f18a92e2013729b608f8d95f80eb364e69594f6 (patch)
tree1027fd378019f57062d7c05d410cb6488f6e66ae /node/Node.cpp
parentaffbca74b41a48e6a485d69409936d7c2bd12858 (diff)
downloadinfinitytier-2f18a92e2013729b608f8d95f80eb364e69594f6.tar.gz
infinitytier-2f18a92e2013729b608f8d95f80eb364e69594f6.zip
Cleanup in numerous places, reduce network chattiness around MULTICAST_LIKE, and fix a "how was that working" latent bug causing some control traffic to take the scenic route.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index b0d683b7..04751172 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -191,7 +191,7 @@ public:
// If this is a world root, pick (if possible) both an IPv4 and an IPv6 stable endpoint to use if link isn't currently alive.
for(std::vector<World::Root>::const_iterator r(_world.roots().begin());r!=_world.roots().end();++r) {
- if (r->identity.address() == p->address()) {
+ if (r->identity == p->identity()) {
upstream = true;
for(unsigned long k=0,ptr=(unsigned long)RR->node->prng();k<(unsigned long)r->stableEndpoints.size();++k) {
const InetAddress &addr = r->stableEndpoints[ptr++ % r->stableEndpoints.size()];