Skip to content
Snippets Groups Projects
Commit 979c7d25 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Dont leak DNS query if we connect via proxy

Fixes #9573
parent 11ae4fac
No related branches found
No related tags found
No related merge requests found
......@@ -928,10 +928,6 @@ def connect(self, data=None):
]
self._hostname = hostname
if h:
app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
self._on_resolve_txt, type_='txt')
if use_srv and self._proxy is None:
self._srv_hosts = []
......@@ -941,6 +937,9 @@ def connect(self, data=None):
for service in services:
record_name = '_' + service + '._tcp.' + helpers.idn_to_ascii(h)
app.resolver.resolve(record_name, self._on_resolve_srv)
app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
self._on_resolve_txt, type_='txt')
else:
self._connect_to_next_host()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment