diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-05 00:15:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-05 00:15:00 +0000 |
commit | 23ae5976f3a4485b7722a477bcb1a9944f0ee7e7 (patch) | |
tree | 9669d6c51921c2069303dcc114f1bb2460b114b7 /src | |
parent | 2e0713222b3c0049d930aff52c86dd646d424c83 (diff) | |
download | tor-23ae5976f3a4485b7722a477bcb1a9944f0ee7e7.tar.gz tor-23ae5976f3a4485b7722a477bcb1a9944f0ee7e7.zip |
r13254@catbus: nickm | 2007-06-04 20:13:47 -0400
When choosing a guard, weight by bandwidth. Resolves bug 440.
svn:r10493
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 0ea51b621b..b460e6a2ae 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1365,7 +1365,7 @@ router_choose_random_node(const char *preferred, if (excludedsmartlist) smartlist_subtract(sl,excludedsmartlist); - if (need_capacity) + if (need_capacity || need_guard) choice = routerlist_sl_choose_by_bandwidth(sl, weight_for_exit); else choice = smartlist_choose(sl); |