Mercurial > libervia-backend
diff src/core/xmpp.py @ 1089:8e0072754413
core, plugins, stdui, frontends: fixes handling of "Force server" and "Force port" parameters:
- do not save a "guessed" value, they must stay empty until the user explicitely sets them
- add constant XMPP_C2S_PORT (default value 5222)
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 23 Jun 2014 10:23:13 +0200 |
parents | b29452cab50b |
children | fe102b4cf275 |
line wrap: on
line diff
--- a/src/core/xmpp.py Mon Jun 23 00:44:10 2014 +0200 +++ b/src/core/xmpp.py Mon Jun 23 10:23:13 2014 +0200 @@ -36,10 +36,10 @@ class SatXMPPClient(client.XMPPClient): implements(iwokkel.IDisco) - def __init__(self, host_app, profile, user_jid, password, host=None, port=5222): + def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT): # XXX: DNS SRV records are checked when the host is not specified. # If no SRV record is found, the host is directly extracted from the JID. - client.XMPPClient.__init__(self, user_jid, password, host or None, port or 5222) + client.XMPPClient.__init__(self, user_jid, password, host or None, port or C.XMPP_C2S_PORT) self.factory.clientConnectionLost = self.connectionLost self.__connected = False self.profile = profile