diff options
author | mathieui <mathieui@mathieui.net> | 2015-09-24 19:38:53 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-09-24 19:38:53 +0200 |
commit | c17fc3a869d132d9d41ebc4081ce29f898404889 (patch) | |
tree | d5d28483339ce7cd6f163217b41d06b1ac60647c | |
parent | 4dba6970757297910731238ce99d78fcc40bbfac (diff) | |
download | slixmpp-c17fc3a869d132d9d41ebc4081ce29f898404889.tar.gz slixmpp-c17fc3a869d132d9d41ebc4081ce29f898404889.tar.bz2 slixmpp-c17fc3a869d132d9d41ebc4081ce29f898404889.tar.xz slixmpp-c17fc3a869d132d9d41ebc4081ce29f898404889.zip |
Fix IPv6 resolving with aiodns 1.0
-rw-r--r-- | slixmpp/xmlstream/resolver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py index 778f7dc3..56cf3872 100644 --- a/slixmpp/xmlstream/resolver.py +++ b/slixmpp/xmlstream/resolver.py @@ -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): |