aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-02 21:56:32 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-02 21:56:32 +0000
commitdfe93fb3866bf4384dbb68541b1e2ca607f489ad (patch)
tree1f909e9af862b2a3dca4ad1f34c6febe65e379de /src/or
parente2a49ed2f44fd47bc1ac71ef094f483badb3d33a (diff)
downloadtor-dfe93fb3866bf4384dbb68541b1e2ca607f489ad.tar.gz
tor-dfe93fb3866bf4384dbb68541b1e2ca607f489ad.zip
whoops, i missed main.c in my r10092
svn:r10098
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 9e421594de..08abe77337 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -899,7 +899,8 @@ run_scheduled_events(time_t now)
if (accounting_is_enabled(options))
accounting_run_housekeeping(now);
- if (now % 10 == 0 && authdir_mode(options) && !we_are_hibernating()) {
+ if (now % 10 == 0 && (authdir_mode_handles_descs(options)) &&
+ !we_are_hibernating()) {
/* try to determine reachability of the other Tor servers */
dirserv_test_reachability(0);
}
@@ -922,7 +923,7 @@ run_scheduled_events(time_t now)
/* Caches need to fetch running_routers; directory clients don't. */
if (options->DirPort && time_to_fetch_running_routers < now) {
- if (!authdir_mode(options) || !options->V1AuthoritativeDir) {
+ if (!authdir_mode_v1(options)) {
directory_get_from_dirserver(DIR_PURPOSE_FETCH_RUNNING_LIST, NULL, 1);
}
/** How often do we (as a cache) fetch a new V1 runningrouters document? */
@@ -1235,7 +1236,7 @@ do_hup(void)
return -1;
}
options = get_options(); /* they have changed now */
- if (authdir_mode(options)) {
+ if (authdir_mode_handles_descs(options)) {
/* reload the approved-routers file */
if (dirserv_load_fingerprint_file() < 0) {
/* warnings are logged from dirserv_load_fingerprint_file() directly */
@@ -1326,7 +1327,7 @@ do_main_loop(void)
}
directory_info_has_arrived(time(NULL),1);
- if (authdir_mode(get_options())) {
+ if (authdir_mode_handles_descs(get_options())) {
/* the directory is already here, run startup things */
dirserv_test_reachability(1);
}