Use socket.inet_pton in main.bootstrap_from_dns() to support IPv6 addrs
This commit is contained in:
parent
0513e6f84e
commit
1776cf958d
|
@ -110,7 +110,7 @@ def bootstrap_from_dns():
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
addr = item[4][0]
|
addr = item[4][0]
|
||||||
socket.inet_aton(addr)
|
socket.inet_pton(item[0], addr)
|
||||||
except (TypeError, socket.error):
|
except (TypeError, socket.error):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user