Use the recent support.HOSTv6 addition.

This commit is contained in:
Charles-François Natali 2013-08-31 14:40:49 +02:00
parent 79a53ea7d7
commit fcfb324e81
2 changed files with 4 additions and 8 deletions

View file

@ -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