diff options
-rw-r--r-- | slixmpp/xmlstream/resolver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py index b4144cc3..ab1424aa 100644 --- a/slixmpp/xmlstream/resolver.py +++ b/slixmpp/xmlstream/resolver.py @@ -128,6 +128,9 @@ def resolve(host, port=None, service=None, proto='tcp', hosts = yield from get_SRV(host, port, service, proto, resolver=resolver, use_aiodns=use_aiodns) + if not hosts: + hosts = [(host, port)] + results = [] for host, port in hosts: if host == 'localhost': |