summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-29 09:27:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-29 09:27:28 -0400
commite35eb9baaace383a88a6fa4fbd5114153ff8d6f1 (patch)
treeec2e381fde1b085e38b2d70993c08b56e87a82c7 /src/or
parent4bb7d9fd1241a3c263636efa03ee8c62ab744515 (diff)
downloadtor-e35eb9baaace383a88a6fa4fbd5114153ff8d6f1.tar.gz
tor-e35eb9baaace383a88a6fa4fbd5114153ff8d6f1.zip
Mark controller-initiated DNS lookups as permitted to do DNS.
Fixes bug 25617; bugfix on 0.2.9.3-alpha.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/dnsserv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index f5a4f2ac0f..6f72fa4191 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -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;