PROTON-522: We don't want to allow IPv4 addresses if only IPv6 is present - Not even mapped addresses.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/d82bbfab Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/d82bbfab Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/d82bbfab Branch: refs/heads/master Commit: d82bbfab037c97e1c403ae701f1b3fe272813ff7 Parents: b6ad8a9 Author: Andrew Stitcher <astitc...@apache.org> Authored: Thu Nov 23 03:15:52 2017 -0500 Committer: Andrew Stitcher <astitc...@apache.org> Committed: Thu Nov 23 03:50:41 2017 -0500 ---------------------------------------------------------------------- proton-c/src/proactor/libuv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d82bbfab/proton-c/src/proactor/libuv.c ---------------------------------------------------------------------- diff --git a/proton-c/src/proactor/libuv.c b/proton-c/src/proactor/libuv.c index 0e5437d..4819646 100644 --- a/proton-c/src/proactor/libuv.c +++ b/proton-c/src/proactor/libuv.c @@ -552,10 +552,7 @@ static int leader_resolve(pn_proactor_t *p, addr_t *addr, bool listen) { struct addrinfo hints = { 0 }; hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - /* Note this looks contradictory since we disable V4 mapping in bind() but it is - correct - read the getaddrinfo man page carefully! - */ - hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG; + hints.ai_flags = AI_ADDRCONFIG; if (listen) { hints.ai_flags |= AI_PASSIVE | AI_ALL; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org