diff options
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; |
