core, memory, plugins, stdui, frontends: look for DNS SRV records when server is not specified:
- fix bug 3
- modify "Connection" params:
- rename "Server" to "Force server" and "Port" to "Force port"
- set the default value to empty string for both
This commit is contained in:
parent
0cbc88ac39
commit
d4eff5b99c
1 changed files with 26 additions and 19 deletions
|
|
@ -110,7 +110,7 @@ class ProfileManager(object):
|
|||
def _changeXMPPPassword(self, data, profile):
|
||||
session_data = self._sessions.profileGetUnique(profile)
|
||||
if not session_data:
|
||||
server = self.host.memory.getParamA("Server", "Connection", profile_key=profile)
|
||||
server = self.host.memory.getParamA(C.FORCE_SERVER_PARAM, "Connection", profile_key=profile)
|
||||
session_id, session_data = self._sessions.newSession({'count': 0, 'server': server}, profile)
|
||||
if session_data['count'] > 2: # 3 attempts with a new password after the initial try
|
||||
self._sessions.profileDelUnique(profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue