summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-26 17:59:45 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-26 17:59:45 -0700
commit2ac56fd120c3c9dd924fccc169beed2d51658ba9 (patch)
treebb17861516a42791f2f3545abc3871d59e53d3da /node/Peer.cpp
parente6b23059aca4947c8c4638c5d5e0abdba3b2b7b7 (diff)
downloadinfinitytier-2ac56fd120c3c9dd924fccc169beed2d51658ba9.tar.gz
infinitytier-2ac56fd120c3c9dd924fccc169beed2d51658ba9.zip
Fix TCP connection accumulation problem, still having issues with TCP tunneling.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 0cd82909..fa8ab3e8 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -69,6 +69,8 @@ void Peer::receive(
Packet::Verb inReVerb,
uint64_t now)
{
+ *((const_cast<uint64_t *>(&(_r->timeOfLastPacketReceived)))) = now;
+
if (!hops) { // direct packet
{
Mutex::Lock _l(_lock);