aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-01 04:58:53 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-01 04:58:53 +0000
commitf8df8d791e4a58ab65d8903a0522b4cfa55cc163 (patch)
tree1fbc2c52fb8d95a0c638da65792609c50d253e5a /src/or/routerparse.c
parent6d49465b691046efb0ffa2c7e89898cdd35ee192 (diff)
downloadtor-f8df8d791e4a58ab65d8903a0522b4cfa55cc163.tar
tor-f8df8d791e4a58ab65d8903a0522b4cfa55cc163.tar.gz
start to refactor dirserver_mode()
svn:r12621
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 84d0c24e4..28e44849f 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -686,7 +686,8 @@ router_parse_directory(const char *str)
/* Now that we know the signature is okay, and we have a
* publication time, cache the directory. */
- if (dirserver_mode(get_options()) && !authdir_mode_v1(get_options()))
+ if (directory_caches_dir_info(get_options()) &&
+ !authdir_mode_v1(get_options()))
dirserv_set_cached_directory(str, published_on, 0);
r = 0;