diff options
Diffstat (limited to 'Swiften/ScreenSharing/ScreenSharing.cpp')
-rw-r--r-- | Swiften/ScreenSharing/ScreenSharing.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/ScreenSharing/ScreenSharing.cpp b/Swiften/ScreenSharing/ScreenSharing.cpp index 7fb1280..f2977a2 100644 --- a/Swiften/ScreenSharing/ScreenSharing.cpp +++ b/Swiften/ScreenSharing/ScreenSharing.cpp @@ -84,8 +84,9 @@ bool ScreenSharing::addBestCandidate(boost::shared_ptr<JingleRawUDPTransportPayl if (addr.getRawAddress().is_v6() && addr.toString().compare(2, scopeLinkBeginning.length(), scopeLinkBeginning) == 0) continue; - int port = serverSocket->bindOnAvailablePort(addr); -// int port = serverSocket->bind(HostAddressPort(addr, 29999)); + int port = serverSocket->bind(HostAddressPort(addr, 29999)); + if (port != 29999) + port = serverSocket->bindOnAvailablePort(addr); if (!port) continue; |