make dnspython work
This commit is contained in:
parent
b89fe57543
commit
68ac516bce
|
@ -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')]
|
||||
|
|
Loading…
Reference in New Issue