diff options
Diffstat (limited to 'Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp')
-rw-r--r-- | Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp b/Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp index a21383c..8ba20a6 100644 --- a/Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp +++ b/Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp @@ -67,19 +67,4 @@ void NATPMPNATTraversalRemovePortForwardingRequest::runBlocking() { onResult(result); } -HostAddress NATPMPNATTraversalRemovePortForwardingRequest::getLocalClient() { - PlatformNetworkEnvironment env; - - foreach (NetworkInterface::ref iface, env.getNetworkInterfaces()) { - if (!iface->isLoopback()) { - foreach (HostAddress address, iface->getAddresses()) { - if (address.getRawAddress().is_v4()) { - return address; - } - } - } - } - return HostAddress(); -} - } |