diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-21 06:08:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-21 06:08:00 +0000 |
commit | 9ebf86bb668ac7672cf09d55ec9b5756105f95ae (patch) | |
tree | 07873842db07079417cee511ce81cb13637c0db1 /src/or/dirserv.c | |
parent | f0e7c4f0da87901584b4b03e7b50157ce607b88e (diff) | |
download | tor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.tar.gz tor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.zip |
new config option FetchDirInfoEarly for tup/ioerror and the tordnsel
svn:r12896
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 364337514e..5733da1adb 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1114,7 +1114,8 @@ dirserv_dump_directory_to_string(char **dir_out, int directory_fetches_from_authorities(or_options_t *options) { - /* XXX if options->FetchDirInfoEagerly, return 1 */ + if (options->FetchDirInfoEarly) + return 1; if (options->DirPort == 0) return 0; if (options->BridgeRelay == 1) @@ -1130,7 +1131,7 @@ directory_fetches_from_authorities(or_options_t *options) * on the "mirror" schedule rather than the "client" schedule. */ int -directory_fetches_dir_info_like_mirror(or_options_t *options) +directory_fetches_dir_info_early(or_options_t *options) { return directory_fetches_from_authorities(options); } @@ -1142,7 +1143,7 @@ directory_fetches_dir_info_like_mirror(or_options_t *options) * client as a directory guard. */ int -directory_fetches_dir_info_like_bridge_user(or_options_t *options) +directory_fetches_dir_info_later(or_options_t *options) { return options->UseBridges != 0; } |