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