mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
be willing to expire routers that have a dirport open
it's just the authoritative dirservers we want to not forget svn:r2173
This commit is contained in:
parent
a4b4ec9430
commit
810ebc80d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user