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/SocketManager.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/SocketManager.cpp')
| -rw-r--r-- | node/SocketManager.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/node/SocketManager.cpp b/node/SocketManager.cpp index f4ffdb23..8e3ee9e0 100644 --- a/node/SocketManager.cpp +++ b/node/SocketManager.cpp @@ -452,20 +452,6 @@ bool SocketManager::send(const InetAddress &to,bool tcp,bool autoConnectTcp,cons return false; } -#ifdef ZT_FIREWALL_OPENER_DELAY -bool SocketManager::sendFirewallOpener(const InetAddress &to,int hopLimit) -{ - if (to.isV4()) { - if (_udpV4Socket) - return ((UdpSocket *)_udpV4Socket.ptr())->sendWithHopLimit(to,"",1,hopLimit); - } else if (to.isV6()) { - if (_udpV6Socket) - return ((UdpSocket *)_udpV6Socket.ptr())->sendWithHopLimit(to,"",1,hopLimit); - } - return false; -} -#endif - void SocketManager::poll(unsigned long timeout) { fd_set rfds,wfds,efds; |
