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/SocketManager.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'node/SocketManager.cpp') 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; -- cgit v1.2.3