[issue30945] loop.create_server does not detect if the interface is IPv6 enabled
Yury Selivanov
report at bugs.python.org
Tue May 29 11:29:12 EDT 2018
Yury Selivanov <yselivanov at gmail.com> added the comment:
> asyncio is picking ipv6 because of this code:
> https://github.com/python/cpython/blob/a445feb72902e4a3c5ae712f0c289309e1580d52/Lib/asyncio/base_events.py#L1334-L1340
> despite my host not actually having an ipv6 network hooked up.
Which should be fine; create_server enumerates all addresses and tries to connect to each one. IPV6_V6ONLY is only applied to one socket for one IPv6 address. I think Antoine's patch is OK.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30945>
_______________________________________
More information about the Python-bugs-list
mailing list