From 8055635e85beba3f0cf028cf3efe50dbf99b0cc3 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 31 Dec 2013 01:22:32 -0800 Subject: [PATCH] VERSION 0.6.5: minor bug fix in peer connection tracking --- node/Peer.cpp | 10 ++++++---- version.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index 8c2c9f9bb..e7db125dd 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -83,18 +83,20 @@ void Peer::onReceive( _r->sw->announceMulticastGroups(SharedPtr(this)); } + // Update last receive info for our direct path + WanPath *const wp = (remoteAddr.isV4() ? &_ipv4p : &_ipv6p); + wp->lastReceive = now; + wp->localPort = ((localPort) ? localPort : Demarc::ANY_PORT); + // Do things like learn latency or endpoints on OK or ERROR replies if (inReVerb != Packet::VERB_NOP) { for(unsigned int p=0;plastReceive = now; - wp->localPort = ((localPort) ? localPort : Demarc::ANY_PORT); if (!wp->fixed) wp->addr = remoteAddr; diff --git a/version.h b/version.h index 5f2762ce3..87b1fc179 100644 --- a/version.h +++ b/version.h @@ -41,6 +41,6 @@ /** * Revision */ -#define ZEROTIER_ONE_VERSION_REVISION 4 +#define ZEROTIER_ONE_VERSION_REVISION 5 #endif