diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-15 19:39:12 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-15 19:41:49 +0100 |
commit | 5c47b735b360323421b43c71761c90de74c73389 (patch) | |
tree | 8629ba30b472e9ecde400c9120887e3057d59a6e /src/connection.py | |
parent | c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33 (diff) | |
download | poezio-5c47b735b360323421b43c71761c90de74c73389.tar.gz poezio-5c47b735b360323421b43c71761c90de74c73389.tar.bz2 poezio-5c47b735b360323421b43c71761c90de74c73389.tar.xz poezio-5c47b735b360323421b43c71761c90de74c73389.zip |
Should avoir connecting on port -1.
Fixes #2289
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 2 |
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) |