aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index f20ed99f4a..c745a0eb4f 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1275,10 +1275,11 @@ rend_services_introduce(void)
smartlist_add_all(exclude_routers, intro_routers);
/* The directory is now here. Pick three ORs as intro points. */
for (j=prev_intro_nodes; j < NUM_INTRO_POINTS; ++j) {
- router = router_choose_random_node(NULL, NULL, exclude_routers,
- options->ExcludeNodes, 1, 0, 0,
- get_options()->_AllowInvalid & ALLOW_INVALID_INTRODUCTION,
- 0, 0);
+ router_crn_flags_t flags = CRN_NEED_UPTIME;
+ if (get_options()->_AllowInvalid & ALLOW_INVALID_INTRODUCTION)
+ flags |= CRN_ALLOW_INVALID;
+ router = router_choose_random_node(NULL, exclude_routers,
+ options->ExcludeNodes, flags);
if (!router) {
log_warn(LD_REND,
"Could only establish %d introduction points for %s.",