mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
Make circuit_log_ancient_one_hop_circuits() ignore established service rendezvous
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>
This commit is contained in:
parent
a2aaf9509b
commit
7ce8d5513b
4
changes/bug25116
Normal file
4
changes/bug25116
Normal file
@ -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;
|
@ -808,10 +808,10 @@ circuit_log_ancient_one_hop_circuits(int age)
|
|||||||
if (circ->timestamp_created.tv_sec >= cutoff)
|
if (circ->timestamp_created.tv_sec >= cutoff)
|
||||||
continue;
|
continue;
|
||||||
/* Single Onion Services deliberately make long term one-hop intro
|
/* Single Onion Services deliberately make long term one-hop intro
|
||||||
* connections. We only ignore active intro point connections, if we take
|
* and rendezvous connections. Don't log the established ones. */
|
||||||
* a long time establishing, that's worth logging. */
|
|
||||||
if (rend_service_allow_non_anonymous_connection(options) &&
|
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;
|
continue;
|
||||||
/* Tor2web deliberately makes long term one-hop rend connections,
|
/* Tor2web deliberately makes long term one-hop rend connections,
|
||||||
* particularly when Tor2webRendezvousPoints is used. We only ignore
|
* particularly when Tor2webRendezvousPoints is used. We only ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user