Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
88e64dbfae
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ def get_AAAA(host, resolver=None):
|
|||
# If not using dnspython, attempt lookup using the OS level
|
||||
# getaddrinfo() method.
|
||||
if resolver is None:
|
||||
if not socket.has_ipv6:
|
||||
log.debug("Unable to query %s for AAAA records: IPv6 is not supported", host)
|
||||
return []
|
||||
try:
|
||||
recs = socket.getaddrinfo(host, None, socket.AF_INET6,
|
||||
socket.SOCK_STREAM)
|
||||
|
|
Loading…
Reference in a new issue