From c9294c1a78fa86fbba38b1a81988ea7527b0872c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 10 Apr 2014 14:22:25 -0700 Subject: Prevent recursive transit of ZeroTier packets, toward GitHub issue #56 --- node/Peer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node/Peer.cpp') diff --git a/node/Peer.cpp b/node/Peer.cpp index 5c87275f..3aeb821e 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -27,6 +27,7 @@ #include "Peer.hpp" #include "Switch.hpp" +#include "AntiRecursion.hpp" #include @@ -164,6 +165,7 @@ Path::Type Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int if ((bestPath)&&(_r->sm->send(bestPath->address(),bestPath->tcp(),bestPath->type() == Path::PATH_TYPE_TCP_OUT,data,len))) { bestPath->sent(now); + _r->antiRec->logOutgoingZT(data,len); return bestPath->type(); } return Path::PATH_TYPE_NULL; -- cgit v1.2.3