diff options
author | David Goulet <dgoulet@torproject.org> | 2022-03-15 12:12:57 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-03-15 12:12:57 -0400 |
commit | 1760a12f8373d10a348ae5eb5bb4ad69406a34c3 (patch) | |
tree | 0e86572c14bcd2ebc0aca79c8ff2b86f472d2d0a /src/feature/client | |
parent | 1934e24469bf7184b825efe2b9b0436b1bc35695 (diff) | |
download | tor-1760a12f8373d10a348ae5eb5bb4ad69406a34c3.tar.gz tor-1760a12f8373d10a348ae5eb5bb4ad69406a34c3.zip |
dns: Wake up a dormant tor with a DNSPort request
Fixes #40577
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/client')
-rw-r--r-- | src/feature/client/dnsserv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/client/dnsserv.c b/src/feature/client/dnsserv.c index 67ab20eded..f0bb0af100 100644 --- a/src/feature/client/dnsserv.c +++ b/src/feature/client/dnsserv.c @@ -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. */ |