From 5c47b735b360323421b43c71761c90de74c73389 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 15 Nov 2011 19:39:12 +0100 Subject: Should avoir connecting on port -1. Fixes #2289 --- src/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/connection.py b/src/connection.py index 0be94097..2d4b7f41 100644 --- a/src/connection.py +++ b/src/connection.py @@ -66,7 +66,7 @@ class Connection(sleekxmpp.ClientXMPP): custom_port = config.get('custom_port', 5222) if custom_host: res = self.connect((custom_host, custom_port), reattempt=False) - elif custom_port != 5222: + elif custom_port != 5222 and custom_port != -1: res = self.connect((self.boundjid.host, custom_port), reattempt=False) else: res = self.connect(reattempt=False) -- cgit v1.2.3