[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

Ralf Schmitt report at bugs.python.org
Fri Oct 12 23:58:03 CEST 2012


Ralf Schmitt added the comment:

Thanks for looking at this. loewis told me in  http://bugs.python.org/issue7735#msg172726 the following:

"""The switch --disable-ipv6 is supported and works as intended. It is not the intention of the switch to disable AAAA lookups. Instead, it disables support for IPv6 sockets."""

So, I expected it to work.

Can you please take a look at the issue 7735? loewis closed this as wontfix. And my argumentation actually involves "don't ask for IPv6 addresses if you disabled IPv6 support".

Anyway, I still think those bogus addresses should be filtered from the getaddrinfo result (if they can't be made correct).

Note that you'll also get bogus results from this call when not explicitly asking for IPv6 addresses (e.g. passing socket.AF_UNSPEC as the third argument).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16208>
_______________________________________


More information about the Python-bugs-list mailing list