]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make circuit_log_ancient_one_hop_circuits() ignore established service rendezvous
authorDavid Goulet <dgoulet@torproject.org>
Mon, 5 Feb 2018 15:52:17 +0000 (10:52 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 5 Feb 2018 18:46:43 +0000 (13:46 -0500)
Services can keep rendezvous circuits for a while so don't log them if tor is
a single onion service.

Fixes #25116

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug25116 [new file with mode: 0644]
src/or/circuituse.c

diff --git a/changes/bug25116 b/changes/bug25116
new file mode 100644 (file)
index 0000000..b3e73fe
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (hidden service, heartbeat):
+    - Don't log in the heartbeat any long term established one hop rendezvous
+      points if tor is a single onion service. Fixes bug 25116; bugfix on
+      0.2.9.6-rc;
index 84574cd5b94396d46b116b489e5dc07548f88f0a..96cd3cd7e8f360fb6f14f8654bbe8719f9f2f22e 100644 (file)
@@ -808,10 +808,10 @@ circuit_log_ancient_one_hop_circuits(int age)
     if (circ->timestamp_created.tv_sec >= cutoff)
       continue;
     /* Single Onion Services deliberately make long term one-hop intro
-     * connections. We only ignore active intro point connections, if we take
-     * a long time establishing, that's worth logging. */
+     * and rendezvous connections. Don't log the established ones. */
     if (rend_service_allow_non_anonymous_connection(options) &&
-        circ->purpose == CIRCUIT_PURPOSE_S_INTRO)
+        (circ->purpose == CIRCUIT_PURPOSE_S_INTRO ||
+         circ->purpose == CIRCUIT_PURPOSE_S_REND_JOINED))
       continue;
     /* Tor2web deliberately makes long term one-hop rend connections,
      * particularly when Tor2webRendezvousPoints is used. We only ignore