summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-16 02:09:55 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-16 02:09:55 +0100
commitefeb0ad58e04104021897c401c73c6e5ff2831d0 (patch)
tree4162b0f24c2fc6632cc1d6ab0435ac3eb90430e9 /src/connection.py
parentd789a59f0c1d849e3074c890913882f09b048cd2 (diff)
parent034a2bde2c571645c7319f89ef63ccc0451bcb0e (diff)
downloadpoezio-efeb0ad58e04104021897c401c73c6e5ff2831d0.tar.gz
poezio-efeb0ad58e04104021897c401c73c6e5ff2831d0.tar.bz2
poezio-efeb0ad58e04104021897c401c73c6e5ff2831d0.tar.xz
poezio-efeb0ad58e04104021897c401c73c6e5ff2831d0.zip
Merge branch 'master' of http://git.louiz.org/poezio
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py2
1 files changed, 1 insertions, 1 deletions
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)