From 68e35e631a184fd3bdbfaf1ecc1c7e1e8c079414 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 5 Nov 2014 01:11:44 +0100 Subject: Also work without SRV records --- slixmpp/xmlstream/resolver.py | 3 +++ 1 file changed, 3 insertions(+) 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': -- cgit v1.2.3