[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] backport: be willing to add our own routerinfo into the rou...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-011x/tor/src/or

Modified Files:
      Tag: tor-0_1_1-patches
	routerlist.c 
Log Message:
backport: be willing to add our own routerinfo into the routerlist.
this means authorities will include themselves in their directories
and network-statuses.


Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.499
retrieving revision 1.499.2.1
diff -u -p -d -r1.499 -r1.499.2.1
--- routerlist.c	10 Apr 2006 08:40:16 -0000	1.499
+++ routerlist.c	10 Apr 2006 20:02:12 -0000	1.499.2.1
@@ -1550,13 +1550,6 @@ router_add_to_routerlist(routerinfo_t *r
       rs->need_to_mirror = 0;
   });
 
-  /* Probably, there's no way to actually pass this function our own
-   * descriptor, but in case there is, don't replace our own descriptor. */
-  if (router_is_me(router)) {
-    routerinfo_free(router);
-    return 0;
-  }
-
   /* If we have a router with this name, and the identity key is the same,
    * choose the newer one. If the identity key has changed, and one of the
    * routers is named, drop the unnamed ones. (If more than one are named,