diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-05 16:23:24 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-05 16:23:24 -0700 |
| commit | 4e9280fc7a41aac6171165487412d2a9abd432a4 (patch) | |
| tree | f8cba1b22a9bcb4580001b8c2c1536c88a278435 /node/Peer.cpp | |
| parent | d02ecfb2880e3b017417242687a77be522e3be83 (diff) | |
| download | infinitytier-4e9280fc7a41aac6171165487412d2a9abd432a4.tar.gz infinitytier-4e9280fc7a41aac6171165487412d2a9abd432a4.zip | |
Rip out dead "firewall opener" code, replace in pipeline with anti-symmetric-NAT tactics.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
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<Path>::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; |
