Fix IPv6 resolving with aiodns 1.0

This commit is contained in:
mathieui 2015-09-24 19:38:53 +02:00
parent 4dba697075
commit c17fc3a869
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -240,7 +240,7 @@ def get_AAAA(host, resolver=None, use_aiodns=True, loop=None):
except Exception as e:
log.debug('DNS: Exception while querying for %s AAAA records: %s', host, e)
recs = []
return recs
return [rec.host for rec in recs]
@asyncio.coroutine
def get_SRV(host, port, service, proto='tcp', resolver=None, use_aiodns=True):