summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-12-16 16:32:07 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:14:10 -0500
commitea6f88478cec6b3151a992cf2fd99539997ebb94 (patch)
tree8215416727f88c63ae43fb11daa121756234060d /src
parent0c8e042c30946faa564f03251bb3663e6204df9a (diff)
downloadtor-ea6f88478cec6b3151a992cf2fd99539997ebb94.tar.gz
tor-ea6f88478cec6b3151a992cf2fd99539997ebb94.zip
Use dir_server_mode() in find_dl_schedule()
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 31a7860ed9..21abfb13d1 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -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(