diff options
author | Lance Stout <lancestout@gmail.com> | 2012-08-10 12:40:28 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-08-10 12:40:28 -0700 |
commit | 4e12e228cb2fbc6fe2941070fe1ea44e01e4a9fb (patch) | |
tree | 51bc8a3c4bbe20c6defadc4b39a640946e889bfe /sleekxmpp/xmlstream/xmlstream.py | |
parent | 4a94aeba49cd2a30ee4d3e71feee5df785b83760 (diff) | |
download | slixmpp-4e12e228cb2fbc6fe2941070fe1ea44e01e4a9fb.tar.gz slixmpp-4e12e228cb2fbc6fe2941070fe1ea44e01e4a9fb.tar.bz2 slixmpp-4e12e228cb2fbc6fe2941070fe1ea44e01e4a9fb.tar.xz slixmpp-4e12e228cb2fbc6fe2941070fe1ea44e01e4a9fb.zip |
Fix tracking service name for DIGEST-MD5
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index f72171a1..8f8e94fd 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -192,6 +192,7 @@ class XMLStream(object): #: The expected name of the server, for validation. self._expected_server_name = '' + self._service_name = '' #: The desired, or actual, address of the connected server. self.address = (host, int(port)) @@ -473,8 +474,10 @@ class XMLStream(object): if self.default_domain: try: - self.address = self.pick_dns_answer(self.default_domain, - self.address[1]) + host, address, port = self.pick_dns_answer(self.default_domain, + self.address[1]) + self.address = (address, port) + self._service_name = host except StopIteration: log.debug("No remaining DNS records to try.") self.dns_answers = None |