diff options
author | dknn <yoann.blein@free.fr> | 2012-07-06 13:58:38 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 08:53:12 (GMT) |
commit | 0b7d40d0a8097e28b146fb96fd68638f66c9c82d (patch) | |
tree | 2abe5ec4e6e0c8f1ed9561d370ebaeba55fca64a | |
parent | 63f031be6dc042ea7d769d5de283af466399371e (diff) | |
download | swift-contrib-0b7d40d0a8097e28b146fb96fd68638f66c9c82d.zip swift-contrib-0b7d40d0a8097e28b146fb96fd68638f66c9c82d.tar.bz2 |
Bugfix: Add missing call to PlatformNetworkEnvironment::getNetworkInterfaces()
-rw-r--r-- | Swiften/FileTransfer/ConnectivityManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/FileTransfer/ConnectivityManager.cpp b/Swiften/FileTransfer/ConnectivityManager.cpp index 7d25991..de5eccb 100644 --- a/Swiften/FileTransfer/ConnectivityManager.cpp +++ b/Swiften/FileTransfer/ConnectivityManager.cpp @@ -57,10 +57,10 @@ std::vector<HostAddressPort> ConnectivityManager::getHostAddressPorts() const { PlatformNetworkEnvironment env; std::vector<HostAddressPort> results; - std::vector<HostAddress> addresses; + //std::vector<HostAddress> addresses; - std::vector<NetworkInterface> networkInterfaces; - foreach (const NetworkInterface& iface, networkInterfaces) { + //std::vector<NetworkInterface> networkInterfaces; + foreach (const NetworkInterface& iface, env.getNetworkInterfaces()) { foreach (const HostAddress& address, iface.getAddresses()) { foreach (int port, ports) { results.push_back(HostAddressPort(address, port)); |