]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Mark controller-initiated DNS lookups as permitted to do DNS.
authorNick Mathewson <nickm@torproject.org>
Thu, 29 Mar 2018 13:27:28 +0000 (09:27 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 29 Mar 2018 13:27:28 +0000 (09:27 -0400)
Fixes bug 25617; bugfix on 0.2.9.3-alpha.

changes/bug25617 [new file with mode: 0644]
src/or/dnsserv.c

diff --git a/changes/bug25617 b/changes/bug25617
new file mode 100644 (file)
index 0000000..5de655d
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (controller):
+    - Restore the correct operation of the RESOLVE command, which had
+      been broken since we added the ability to enable/disable DNS
+      on specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
+
index f5a4f2ac0f535b31af7327cd3f2afff3c979b40d..6f72fa4191ca1684026a040ed3102aea7c2af984 100644 (file)
@@ -196,6 +196,7 @@ dnsserv_launch_request(const char *name, int reverse,
 
   /* Make a new dummy AP connection, and attach the request to it. */
   entry_conn = entry_connection_new(CONN_TYPE_AP, AF_INET);
+  entry_conn->entry_cfg.dns_request = 1;
   conn = ENTRY_TO_EDGE_CONN(entry_conn);
   CONNECTION_AP_EXPECT_NONPENDING(entry_conn);
   conn->base_.state = AP_CONN_STATE_RESOLVE_WAIT;