mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: _check_resolved_address() must also accept IPv6 without flow_info and
scope_id: (host, port).
This commit is contained in:
parent
35669ae77e
commit
a90e8edaea
2 changed files with 7 additions and 4 deletions
|
@ -48,7 +48,7 @@ def _check_resolved_address(sock, address):
|
|||
if family == socket.AF_INET:
|
||||
host, port = address
|
||||
elif family == socket.AF_INET6:
|
||||
host, port, flow_info, scope_id = address
|
||||
host, port = address[:2]
|
||||
else:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue