diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-09-26 20:44:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-09-26 20:45:27 (GMT) |
commit | 4b61e7363dbc0e8bf595da06840db4175e3b86c3 (patch) | |
tree | d33f51dec98251cf581da4ced909d07ebb2ecd24 /Swiften/Network/NATPMPNATTraversalRemovePortForwardingRequest.cpp | |
parent | df957dbaaa42330ff888e42fe6f2d31c01d8129d (diff) | |
download | swift-contrib-4b61e7363dbc0e8bf595da06840db4175e3b86c3.zip swift-contrib-4b61e7363dbc0e8bf595da06840db4175e3b86c3.tar.bz2 |
Refactoring NetworkEnvironments.
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(); -} - } |