mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
don't ever expire dirserver routerinfos!
svn:r1908
This commit is contained in:
parent
30a07b2ecd
commit
faf2fdb1e0
@ -366,8 +366,9 @@ routerlist_remove_old_routers(void)
|
||||
cutoff = time(NULL) - ROUTER_MAX_AGE;
|
||||
for (i = 0; i < smartlist_len(routerlist->routers); ++i) {
|
||||
router = smartlist_get(routerlist->routers, i);
|
||||
if (router->published_on < cutoff) {
|
||||
/* Too old. Remove it. */
|
||||
if (router->published_on < cutoff &&
|
||||
!router->dir_port) {
|
||||
/* Too old. Remove it. But never remove dirservers! */
|
||||
log_fn(LOG_INFO,"Forgetting obsolete routerinfo for node %s.", router->nickname);
|
||||
routerinfo_free(router);
|
||||
smartlist_del(routerlist->routers, i--);
|
||||
|
Loading…
Reference in New Issue
Block a user