summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-20 06:47:59 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-20 06:47:59 +0000
commitf0e7c4f0da87901584b4b03e7b50157ce607b88e (patch)
tree7f76e6f37f14f82132ef1b89ea946d990503c413 /src/or/config.c
parentacd8bc1fd92e71c25570c161f0b3b9b1f4b766a7 (diff)
downloadtor-f0e7c4f0da87901584b4b03e7b50157ce607b88e.tar.gz
tor-f0e7c4f0da87901584b4b03e7b50157ce607b88e.zip
Only Tors that want to mirror the v2 directory info should
create the "cached-status" directory in their datadir. All Tors used to create it. Bugfix on 0.1.2.x. Bridge relays with DirPort set to 0 no longer cache v1 or v2 directory information; there's no point. Bugfix on trunk. svn:r12887
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 83fec4e1bb..437a75690e 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1108,7 +1108,7 @@ options_act(or_options_t *old_options)
return -1;
}
- if (running_tor) {
+ if (running_tor && directory_caches_v2_dir_info(options)) {
len = strlen(options->DataDirectory)+32;
fn = tor_malloc(len);
tor_snprintf(fn, len, "%s"PATH_SEPARATOR"cached-status",