changeset b0aafa9be2b5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b0aafa9be2b5 description: correctly set the route attribute in BOSH connections.
diffstat:
src/common/xmpp/bosh.py | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
diffs (28 lines):
diff -r e53f8b416348 -r b0aafa9be2b5 src/common/xmpp/bosh.py --- a/src/common/xmpp/bosh.py Mon Nov 14 23:23:40 2011 +0100 +++ b/src/common/xmpp/bosh.py Tue Nov 15 09:48:28 2011 +0100 @@ -413,15 +413,15 @@ 'xmlns:xmpp': 'urn:xmpp:xbosh'}) else: t = BOSHBody( - attrs={ 'content': self.bosh_content, - 'hold': str(self.bosh_hold), - 'route': '%s:%s' % (self.route_host, self.route_port), - 'to': self.bosh_to, - 'wait': str(self.bosh_wait), - 'xml:lang': self.bosh_xml_lang, - 'xmpp:version': '1.0', - 'ver': '1.6', - 'xmlns:xmpp': 'urn:xmpp:xbosh'}) + attrs={ 'content': self.bosh_content, + 'hold': str(self.bosh_hold), + 'route': 'xmpp:%s:%s' % (self.route_host, self.route_port), + 'to': self.bosh_to, + 'wait': str(self.bosh_wait), + 'xml:lang': self.bosh_xml_lang, + 'xmpp:version': '1.0', + 'ver': '1.6', + 'xmlns:xmpp': 'urn:xmpp:xbosh'}) self.send_BOSH((t, True))
def start_disconnect(self):