summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-01 19:05:27 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-01 19:05:27 -0700
commit5341e32729e21b1880afe121e5c36bfa9cfefd00 (patch)
treea75d370004c93aac321cc6661d379ad0ee007a5b /node/Peer.cpp
parent960ceb479155146455d8c84c002b964cc0e1d47e (diff)
downloadinfinitytier-5341e32729e21b1880afe121e5c36bfa9cfefd00.tar.gz
infinitytier-5341e32729e21b1880afe121e5c36bfa9cfefd00.zip
Fix to GitHub issue #140 -- network preferred relays. Also go ahead and allow RENDEZVOUS from regular peers.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index f5365223..d788d006 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -191,7 +191,7 @@ void Peer::attemptToContactAt(const RuntimeEnvironment *RR,const InetAddress &at
RR->node->putPacket(atAddress,outp.data(),outp.size());
}
-bool Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now)
+void Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now)
{
Path *const bestPath = getBestPath(now);
if ((bestPath)&&(bestPath->active(now))) {
@@ -204,9 +204,7 @@ bool Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now)
RR->node->putPacket(bestPath->address(),"",0);
bestPath->sent(now);
}
- return true;
}
- return false;
}
void Peer::addPath(const Path &newp)