Commit 1760a12f authored by David Goulet's avatar David Goulet 🐼
Browse files

dns: Wake up a dormant tor with a DNSPort request



Fixes #40577

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 1934e244
Loading
Loading
Loading
Loading

changes/ticket40577

0 → 100644
+3 −0
Original line number Diff line number Diff line
  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.
+3 −0
Original line number Diff line number Diff line
@@ -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. */