diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-06 17:01:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-06 17:01:16 +0000 |
commit | 75c38a2c88eb4d34d2fe8e5137aaa6cd6a8d8f3b (patch) | |
tree | 57e0e5c77d4f25912f619c1ed2a75158d84e5f22 /src/or/dirserv.c | |
parent | b277954501a3884932c5efb1be5e1e7b23954d13 (diff) | |
download | tor-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.c | 3 |
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; |