tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit e2e13e7c8a2a40074805a19651d7837484d3a8b8
parent 209bfe715cc8c1c59b2578c406749a0d4a5bd8cb
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon,  4 Sep 2017 11:40:02 -0400

Merge branch 'maint-0.3.1'

Diffstat:
Achanges/bug23275 | 5+++++
Msrc/or/main.c | 2+-
Msrc/or/networkstatus.c | 2+-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/changes/bug23275 b/changes/bug23275 @@ -0,0 +1,5 @@ + o Minor bugfixes (relay): + - When a relay is not running as a directory cache, it will no longer + generate compressed consensuses and consensus diff information. + Previously, this was a waste of disk and CPU. Fixes bug 23275; + bugfix on 0.3.1.1-alpha. diff --git a/src/or/main.c b/src/or/main.c @@ -1483,7 +1483,7 @@ run_scheduled_events(time_t now) /* 12. launch diff computations. (This is free if there are none to * launch.) */ - if (server_mode(options)) { + if (dir_server_mode(options)) { consdiffmgr_rescan(); } } diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c @@ -2021,7 +2021,7 @@ networkstatus_set_current_consensus(const char *consensus, &c->digests, c->digest_sha3_as_signed, c->valid_after); - if (server_mode(get_options())) { + if (dir_server_mode(get_options())) { consdiffmgr_add_consensus(consensus, c); } }