mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
be willing to add our own routerinfo into the routerlist.
this means authorities will include themselves in their directories and network-statuses. svn:r6369
This commit is contained in:
parent
fe6c1b0192
commit
f89b0ea09f
@ -1550,13 +1550,6 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
|
|||||||
rs->need_to_mirror = 0;
|
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,
|
/* 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
|
* 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,
|
* routers is named, drop the unnamed ones. (If more than one are named,
|
||||||
|
Loading…
Reference in New Issue
Block a user