make dnspython work

This commit is contained in:
Nikos Kouremenos 2005-11-07 13:04:58 +00:00
parent b89fe57543
commit 68ac516bce
1 changed files with 1 additions and 1 deletions

View File

@ -1510,7 +1510,7 @@ class Connection:
hosts = []
# SRV resolver
if use_srv and (HAS_DNSPYTHON or HAS_PYDNS):
query = '_xmpp-client._tcp.' + h
query = '_xmpp-client._tcp.' + h.decode('utf-8')
try:
if HAS_DNSPYTHON:
answers = [x for x in dns.resolver.query(query, 'SRV')]