summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2016-09-05 16:19:10 -0700
committerGrant Limberg <glimberg@gmail.com>2016-09-05 16:19:10 -0700
commit68a966fa5578a160fbd602cecf0e235b8df34e9f (patch)
treea0633b825180feef8c74f24b005db1ec3f320af4 /node/Node.cpp
parent43b3ec4b1afa3c3833f1f61ec10c9f22bd5e7359 (diff)
parent3790ebe77a90cdaad629f275c2c4294694626733 (diff)
downloadinfinitytier-68a966fa5578a160fbd602cecf0e235b8df34e9f.tar.gz
infinitytier-68a966fa5578a160fbd602cecf0e235b8df34e9f.zip
Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index d2840bd0..a7d4cfa9 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -243,7 +243,7 @@ public:
lastReceiveFromUpstream = std::max(p->lastReceive(),lastReceiveFromUpstream);
} else if (p->activelyTransferringFrames(_now)) {
// Normal nodes get their preferred link kept alive if the node has generated frame traffic recently
- p->doPingAndKeepalive(_now,0);
+ p->doPingAndKeepalive(_now,-1);
}
}
@@ -422,7 +422,6 @@ ZT_PeerList *Node::peers() const
memcpy(&(p->paths[p->pathCount].address),&((*path)->address()),sizeof(struct sockaddr_storage));
p->paths[p->pathCount].lastSend = (*path)->lastOut();
p->paths[p->pathCount].lastReceive = (*path)->lastIn();
- p->paths[p->pathCount].active = (*path)->alive(_now) ? 1 : 0;
p->paths[p->pathCount].preferred = (*path == bestp) ? 1 : 0;
p->paths[p->pathCount].trustedPathId = RR->topology->getOutboundPathTrust((*path)->address());
++p->pathCount;