summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-21 06:08:00 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-21 06:08:00 +0000
commit9ebf86bb668ac7672cf09d55ec9b5756105f95ae (patch)
tree07873842db07079417cee511ce81cb13637c0db1 /src/or/config.c
parentf0e7c4f0da87901584b4b03e7b50157ce607b88e (diff)
downloadtor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.tar.gz
tor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.zip
new config option FetchDirInfoEarly for tup/ioerror and the tordnsel
svn:r12896
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 437a75690e..6d9ab48c3c 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -190,6 +190,7 @@ static config_var_t _option_vars[] = {
V(FascistFirewall, BOOL, "0"),
V(FirewallPorts, CSV, ""),
V(FastFirstHopPK, BOOL, "1"),
+ V(FetchDirInfoEarly, BOOL, "0"),
V(FetchServerDescriptors, BOOL, "1"),
V(FetchHidServDescriptors, BOOL, "1"),
V(FetchUselessDescriptors, BOOL, "0"),
@@ -1240,10 +1241,10 @@ options_act(or_options_t *old_options)
if (old_options) {
if (authdir_mode_v3(options) && !authdir_mode_v3(old_options))
dirvote_recalculate_timing(options, time(NULL));
- if (!bool_eq(directory_fetches_dir_info_like_mirror(options),
- directory_fetches_dir_info_like_mirror(old_options)) ||
- !bool_eq(directory_fetches_dir_info_like_bridge_user(options),
- directory_fetches_dir_info_like_bridge_user(old_options))) {
+ if (!bool_eq(directory_fetches_dir_info_early(options),
+ directory_fetches_dir_info_early(old_options)) ||
+ !bool_eq(directory_fetches_dir_info_later(options),
+ directory_fetches_dir_info_later(old_options))) {
/* Make sure update_router_have_min_dir_info gets called. */
router_dir_info_changed();
/* We might need to download a new consensus status later or sooner than