]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dns: Wake up a dormant tor with a DNSPort request
authorDavid Goulet <dgoulet@torproject.org>
Tue, 15 Mar 2022 16:12:57 +0000 (12:12 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 15 Mar 2022 16:12:57 +0000 (12:12 -0400)
Fixes #40577

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40577 [new file with mode: 0644]
src/feature/client/dnsserv.c

diff --git a/changes/ticket40577 b/changes/ticket40577
new file mode 100644 (file)
index 0000000..3050769
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (DNSPort, dormant mode):
+    - A request on the DNSPort now wakes up a dormant tor. Fixes bug 40577;
+      bugfix on 0.3.5.1-alpha.
index 67ab20ededa4882633470fdb52bd5977e35db5ad..f0bb0af100ae807fbdf73b5b3ff98a5e1c54ec4d 100644 (file)
@@ -65,6 +65,9 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
 
   log_info(LD_APP, "Got a new DNS request!");
 
+  /* Receiving a request on the DNSPort counts as user activity. */
+  note_user_activity(approx_time());
+
   req->flags |= 0x80; /* set RA */
 
   /* First, check whether the requesting address matches our SOCKSPolicy. */