Author: astitcher
Date: Fri Jun 27 19:58:32 2014
New Revision: 1606197
URL: http://svn.apache.org/r1606197
Log:
QPID-5859: Make qpidd listen to all protocol addresses when it starts up.
Modified:
qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp?rev=1606197&r1=1606196&r2=1606197&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp Fri Jun 27
19:58:32 2014
@@ -120,14 +120,14 @@ const ::addrinfo& getAddrInfo(const Sock
if (!sa.addrInfo) {
::addrinfo hints;
::memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_ADDRCONFIG; // Only use protocols that we have
configured interfaces for
hints.ai_family = AF_UNSPEC; // Allow both IPv4 and IPv6
hints.ai_socktype = SOCK_STREAM;
const char* node = 0;
if (sa.host.empty()) {
- hints.ai_flags |= AI_PASSIVE;
+ hints.ai_flags = AI_PASSIVE;
} else {
+ hints.ai_flags = AI_ADDRCONFIG; // Only use protocols that we have
configured interfaces for
node = sa.host.c_str();
}
const char* service = sa.port.empty() ? "0" : sa.port.c_str();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]