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

View File

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