|
@@ -1365,7 +1365,7 @@ router_choose_random_node(const char *preferred,
|
|
if (excludedsmartlist)
|
|
if (excludedsmartlist)
|
|
smartlist_subtract(sl,excludedsmartlist);
|
|
smartlist_subtract(sl,excludedsmartlist);
|
|
|
|
|
|
- if (need_capacity)
|
|
+ if (need_capacity || need_guard)
|
|
choice = routerlist_sl_choose_by_bandwidth(sl, weight_for_exit);
|
|
choice = routerlist_sl_choose_by_bandwidth(sl, weight_for_exit);
|
|
else
|
|
else
|
|
choice = smartlist_choose(sl);
|
|
choice = smartlist_choose(sl);
|