test: Fix IPv6 check on BSD systems

pull/826/head
nthumann 4 years ago
parent b295395664
commit 2be3572506
No known key found for this signature in database
GPG Key ID: 91AE26F52DE54B76

@ -151,7 +151,7 @@ def test_ipv6_local():
have_ipv6 = True
try:
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
s.connect(('::1', 0))
s.connect(('::1', 1))
except socket.error:
have_ipv6 = False
return have_ipv6

Loading…
Cancel
Save