From 4e9280fc7a41aac6171165487412d2a9abd432a4 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 5 Sep 2014 16:23:24 -0700 Subject: Rip out dead "firewall opener" code, replace in pipeline with anti-symmetric-NAT tactics. --- node/Peer.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'node/Peer.cpp') diff --git a/node/Peer.cpp b/node/Peer.cpp index b10cc1f2..e05352c9 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -181,23 +181,6 @@ Path::Type Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int return Path::PATH_TYPE_NULL; } -#ifdef ZT_FIREWALL_OPENER_DELAY -bool Peer::sendFirewallOpener(const RuntimeEnvironment *_r,uint64_t now) -{ - bool sent = false; - Mutex::Lock _l(_lock); - - for(std::vector::iterator p(_paths.begin());p!=_paths.end();++p) { - if (p->type() == Path::PATH_TYPE_UDP) { - for(unsigned int h=1;h<=ZT_FIREWALL_OPENER_HOPS;++h) - sent |= _r->sm->sendFirewallOpener(p->address(),h); - } - } - - return sent; -} -#endif - bool Peer::sendPing(const RuntimeEnvironment *_r,uint64_t now) { bool sent = false; -- cgit v1.2.3