Skip to content
Snippets Groups Projects
Commit 63353462 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

if your requested exit node has bandwidth 0, pick it anyway

svn:r2920
parent d4ac7300
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,7 @@ routerlist_sl_choose_by_bandwidth(smartlist_t *sl)
// log_fn(LOG_INFO,"Recording bw %d for node %s.", this_bw, router->nickname);
}
if(!total_bw)
return NULL;
return smartlist_choose(sl);
rand_bw = crypto_pseudo_rand_int(total_bw);
// log_fn(LOG_INFO,"Total bw %d. Randomly chose %d.", total_bw, rand_bw);
tmp = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment