Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
086eeb3d by Yann Leboulanger at 2017-12-03T14:55:41+01:00
resolve TXT record only for non-zeroconf accounts. Fixes #8792
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -182,11 +182,6 @@ class CommonConnection:
self.get_config_values_or_default()
- h = app.config.get_per('accounts', self.name, 'hostname')
- if h:
- app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
- self._on_resolve_txt, type_='txt')
-
def _compute_resource(self):
resource = app.config.get_per('accounts', self.name, 'resource')
# All valid resource substitution strings should be added to this hash.
@@ -709,6 +704,11 @@ class Connection(CommonConnection, ConnectionHandlers):
self._nec_gc_stanza_message_outgoing)
app.ged.register_event_handler('stanza-message-outgoing',
ged.OUT_CORE, self._nec_stanza_message_outgoing)
+
+ h = app.config.get_per('accounts', self.name, 'hostname')
+ if h:
+ app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
+ self._on_resolve_txt, type_='txt')
# END __init__
def cleanup(self):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/086eeb3dc851cae7993a58d5dc1131178a5b08a4
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/086eeb3dc851cae7993a58d5dc1131178a5b08a4
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits