From: David Goulet Date: Tue, 20 Sep 2016 19:00:24 +0000 (-0400) Subject: dns: Always enable DNS request for our DNSPort X-Git-Tag: tor-0.2.9.3-alpha~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32926b008b6c2a95966c6307ca4f1c920c920d44;p=thirdparty%2Ftor.git dns: Always enable DNS request for our DNSPort Commit 41cc1f612bd2112ab7cec0cc4fdeb68c26e231bf 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 --- diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 6aab1e2c36..04be3e8a6a 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -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;