parent
c7ba8fd5b6
commit
5c47b735b3
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Connection(sleekxmpp.ClientXMPP):
|
||||||
custom_port = config.get('custom_port', 5222)
|
custom_port = config.get('custom_port', 5222)
|
||||||
if custom_host:
|
if custom_host:
|
||||||
res = self.connect((custom_host, custom_port), reattempt=False)
|
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)
|
res = self.connect((self.boundjid.host, custom_port), reattempt=False)
|
||||||
else:
|
else:
|
||||||
res = self.connect(reattempt=False)
|
res = self.connect(reattempt=False)
|
||||||
|
|
Loading…
Reference in a new issue