From f379d06d2c97257c165ad339680de38d4754ddb0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 3 Jul 2008 06:26:39 +0000 Subject: [PATCH] fix connection for ipv6 --- src/common/xmpp/transports_nb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index 613dbd693..3ee90241d 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -149,8 +149,8 @@ class NonBlockingTcp(PlugIn, IdleObject): ''' self.on_connect = on_connect self.on_connect_failure = on_connect_failure - (self.server, self.port) = conn_5tuple[4] - log.info('NonBlocking Connect :: About tot connect to %s:%s' % conn_5tuple[4]) + (self.server, self.port) = conn_5tuple[4][:2] + log.info('NonBlocking Connect :: About tot connect to %s:%s' % conn_5tuple[4][:2]) try: self._sock = socket.socket(*conn_5tuple[:3]) except socket.error, (errnum, errstr):