diff options
author | Roger Dingledine <arma@torproject.org> | 2008-12-08 00:04:29 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-12-08 00:04:29 +0000 |
commit | e5be0504abe4d830247295d6c3ed9c6de92d2e16 (patch) | |
tree | 0e64a2d9eb04c80a11f022aa949cd801b49b0d1d /src/or/routerlist.c | |
parent | f31c16d993f1566d32ae8e1ba2aa29a242818e0c (diff) | |
download | tor-e5be0504abe4d830247295d6c3ed9c6de92d2e16.tar.gz tor-e5be0504abe4d830247295d6c3ed9c6de92d2e16.zip |
When the client is choosing entry guards, now it selects at most
one guard from a given relay family. Otherwise we could end up with
all of our entry points into the network run by the same operator.
Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
Not a backport candidate, since I think this might break for users
who only have a given /16 in their reachableaddresses, or something
like that.
svn:r17514
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 48e66ed8db..e2f3170b6a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1219,7 +1219,8 @@ routerlist_add_network_family(smartlist_t *sl, routerinfo_t *router) } /** Add all the family of <b>router</b> to the smartlist <b>sl</b>. - * This is used to make sure we don't pick siblings in a single path. + * This is used to make sure we don't pick siblings in a single path, + * or pick more than one relay from a family for our entry guard list. */ void routerlist_add_family(smartlist_t *sl, routerinfo_t *router) |