aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-06 22:47:41 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-06 22:47:41 +0000
commit810ebc80d0e7b2ff63628a207382cae24e110d0a (patch)
tree40d4257f535c1c42fd63686f55c4bef079c176f0 /src/or/routerlist.c
parenta4b4ec94308eef3587cbfcd9c27e424e50e9cec6 (diff)
downloadtor-810ebc80d0e7b2ff63628a207382cae24e110d0a.tar
tor-810ebc80d0e7b2ff63628a207382cae24e110d0a.tar.gz
be willing to expire routers that have a dirport open
it's just the authoritative dirservers we want to not forget svn:r2173
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 79dabc490..fa318fcca 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -507,8 +507,7 @@ routerlist_remove_old_routers(int age)
for (i = 0; i < smartlist_len(routerlist->routers); ++i) {
router = smartlist_get(routerlist->routers, i);
if (router->published_on <= cutoff &&
-/* XXX008 don't get fooled by cached dir ports */
- !router->dir_port) {
+ !router->is_trusted_dir) {
/* Too old. Remove it. But never remove dirservers! */
log_fn(LOG_INFO,"Forgetting obsolete routerinfo for node %s.", router->nickname);
routerinfo_free(router);