summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-06-27 19:58:32 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-06-27 19:58:32 +0000
commitfdaed2846c34f566aa35b5304f912bfd763358b8 (patch)
tree743d4b8d1810855243c1f370327032afbfd15c84 /qpid/cpp
parent4a11d9dec13540f390a0d0b3bece58f6658e6a7f (diff)
downloadqpid-python-fdaed2846c34f566aa35b5304f912bfd763358b8.tar.gz
QPID-5859: Make qpidd listen to all protocol addresses when it starts up.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1606197 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp b/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp
index b88b3a2806..e22d23d675 100644
--- a/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp
+++ b/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp
@@ -120,14 +120,14 @@ const ::addrinfo& getAddrInfo(const SocketAddress& sa)
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();