summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.py b/src/connection.py
index f3ff0a30..cf7ff72c 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -77,6 +77,8 @@ class Connection(sleekxmpp.ClientXMPP):
# (domain, config.get('port', 5222))
custom_host = config.get('custom_host', '')
custom_port = config.get('custom_port', 5222)
+ if custom_port == -1:
+ custom_port = 5222
if custom_host:
res = self.connect((custom_host, custom_port), reattempt=False)
elif custom_port != 5222 and custom_port != -1: