resolve TXT record only for non-zeroconf accounts. Fixes #8792
This commit is contained in:
parent
15a8b503d9
commit
086eeb3dc8
1 changed files with 5 additions and 5 deletions
|
@ -182,11 +182,6 @@ class CommonConnection:
|
||||||
|
|
||||||
self.get_config_values_or_default()
|
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):
|
def _compute_resource(self):
|
||||||
resource = app.config.get_per('accounts', self.name, 'resource')
|
resource = app.config.get_per('accounts', self.name, 'resource')
|
||||||
# All valid resource substitution strings should be added to this hash.
|
# 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)
|
self._nec_gc_stanza_message_outgoing)
|
||||||
app.ged.register_event_handler('stanza-message-outgoing',
|
app.ged.register_event_handler('stanza-message-outgoing',
|
||||||
ged.OUT_CORE, self._nec_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__
|
# END __init__
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue