[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] be willing to expire routers that have a dirport open
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
routerlist.c
Log Message:
be willing to expire routers that have a dirport open
it's just the authoritative dirservers we want to not forget
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- routerlist.c 6 Aug 2004 22:15:25 -0000 1.114
+++ routerlist.c 6 Aug 2004 22:47:41 -0000 1.115
@@ -507,8 +507,7 @@
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);