fixed dns unicode problem

This commit is contained in:
Nathan Fritz
2010-05-26 11:37:01 -07:00
parent f4bc9d9722
commit fa92bc866b
2 changed files with 3 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ class ClientXMPP(basexmpp, XMLStream):
else:
logging.debug("Since no address is supplied, attempting SRV lookup.")
try:
answers = dns.resolver.query("_xmpp-client._tcp.%s" % self.server, "SRV")
answers = dns.resolver.query("_xmpp-client._tcp.%s" % self.server, dns.rdatatype.SRV)
except dns.resolver.NXDOMAIN:
logging.debug("No appropriate SRV record found. Using JID server name.")
else: