aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-06 17:01:16 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-06 17:01:16 +0000
commit75c38a2c88eb4d34d2fe8e5137aaa6cd6a8d8f3b (patch)
tree57e0e5c77d4f25912f619c1ed2a75158d84e5f22 /src/or/dirserv.c
parentb277954501a3884932c5efb1be5e1e7b23954d13 (diff)
downloadtor-75c38a2c88eb4d34d2fe8e5137aaa6cd6a8d8f3b.tar.gz
tor-75c38a2c88eb4d34d2fe8e5137aaa6cd6a8d8f3b.zip
Bridges now behave like clients with respect to time intervals for
downloading new consensus documents. Bridge users now wait until the end of the interval, so their bridge will be sure to have a new consensus document. svn:r12696
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index f36ac55b67..e0d4d05a10 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1096,8 +1096,11 @@ 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->DirPort == 0)
return 0;
+ if (options->BridgeRelay == 1)
+ return 0;
/* XXX if dirport not advertised, return 0 too */
if (!server_mode(options))
return 0;