diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-30 11:33:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-30 15:00:08 -0400 |
commit | 996f7c75ba6abd9c4bc884f2c9a3b62889da9134 (patch) | |
tree | 401e1773db882347f277e5f3962f18d31c8a7f42 /src/feature/nodelist | |
parent | 339ac4dc67af912e3c8608627e436fb866714538 (diff) | |
download | tor-996f7c75ba6abd9c4bc884f2c9a3b62889da9134.tar.gz tor-996f7c75ba6abd9c4bc884f2c9a3b62889da9134.zip |
Make the reachability.c module dirauth-only.
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r-- | src/feature/nodelist/routerlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c index 48f448ad1e..88a5eeac6a 100644 --- a/src/feature/nodelist/routerlist.c +++ b/src/feature/nodelist/routerlist.c @@ -1926,6 +1926,8 @@ routerlist_remove_old_routers(void) void routerlist_descriptors_added(smartlist_t *sl, int from_cache) { + // XXXX use pubsub mechanism here. + tor_assert(sl); control_event_descriptors_changed(sl); SMARTLIST_FOREACH_BEGIN(sl, routerinfo_t *, ri) { @@ -1933,7 +1935,9 @@ routerlist_descriptors_added(smartlist_t *sl, int from_cache) learned_bridge_descriptor(ri, from_cache); if (ri->needs_retest_if_added) { ri->needs_retest_if_added = 0; +#ifdef HAVE_MODULE_DIRAUTH dirserv_single_reachability_test(approx_time(), ri); +#endif } } SMARTLIST_FOREACH_END(ri); } |