mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use the recent support.HOSTv6 addition.
This commit is contained in:
parent
79a53ea7d7
commit
fcfb324e81
2 changed files with 4 additions and 8 deletions
|
@ -587,7 +587,7 @@ def _is_ipv6_enabled():
|
|||
sock = None
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
|
||||
sock.bind(('::1', 0))
|
||||
sock.bind((HOSTv6, 0))
|
||||
return True
|
||||
except OSError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue