mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
dns: Always enable DNS request for our DNSPort
Commit 41cc1f612b
introduced a "dns_request"
configuration value which wasn't set to 1 for an entry connection on the
DNSPort leading to a refusal to resolve the given hostname.
This commit set the dns_request flag by default for every entry connection
made to the DNSPort.
Fixes #20109
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
af01e8211e
commit
32926b008b
@ -136,6 +136,8 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
||||
entry_conn->socks_request->command = SOCKS_COMMAND_RESOLVE_PTR;
|
||||
}
|
||||
|
||||
/* This serves our DNS port so enable DNS request by default. */
|
||||
entry_conn->entry_cfg.dns_request = 1;
|
||||
if (q->type == EVDNS_TYPE_A || q->type == EVDNS_QTYPE_ALL) {
|
||||
entry_conn->entry_cfg.ipv4_traffic = 1;
|
||||
entry_conn->entry_cfg.ipv6_traffic = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user