aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-23 10:22:51 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-23 10:22:51 -0400
commit86ee35ad5b5240b16d3f231f66f744ce7cc3c293 (patch)
tree76e090ad1079c7a95b02e1f5b1032fa7196b5b1a /src/or/networkstatus.c
parent10b242822490c9873138565bcc8a3565a7dc7014 (diff)
downloadtor-86ee35ad5b5240b16d3f231f66f744ce7cc3c293.tar.gz
tor-86ee35ad5b5240b16d3f231f66f744ce7cc3c293.zip
Don't do expensive consensus stuff when not a cache.
This includes generating and storing compressed consensuses, and consensus diffs. Fixes bug 23275; bugfix on 0.3.1.1-alpha.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 25d79139b9..997280de52 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2014,7 +2014,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);
}
}