mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use dir_server_mode() in find_dl_schedule()
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
committed by
Nick Mathewson
parent
0c8e042c30
commit
ea6f88478c
+1
-2
@@ -3673,8 +3673,7 @@ connection_dir_finished_connecting(dir_connection_t *conn)
|
||||
static const smartlist_t *
|
||||
find_dl_schedule(download_status_t *dls, const or_options_t *options)
|
||||
{
|
||||
/* XX/teor Replace with dir_server_mode from #12538 */
|
||||
const int dir_server = options->DirPort_set;
|
||||
const int dir_server = dir_server_mode(options);
|
||||
const int multi_d = networkstatus_consensus_can_use_multiple_directories(
|
||||
options);
|
||||
const int we_are_bootstrapping = networkstatus_consensus_is_boostrapping(
|
||||
|
||||
Reference in New Issue
Block a user