Mercurial > libervia-backend
diff src/core/sat_main.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 | 0eefc74c346b |
line wrap: on
line diff
--- a/src/core/sat_main.py Mon Jun 23 00:44:10 2014 +0200 +++ b/src/core/sat_main.py Mon Jun 23 10:23:13 2014 +0200 @@ -223,7 +223,7 @@ port = int(self.memory.getParamA(C.FORCE_PORT_PARAM, "Connection", profile_key=profile)) except ValueError: log.error(_("Can't parse port value, using default value")) - port = 5222 + port = None # will use default value 5222 or be retrieved from a DNS SRV record password = yield self.memory.asyncGetParamA("Password", "Connection", profile_key=profile) current = self.profiles[profile] = xmpp.SatXMPPClient(self, profile,