aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-08 21:19:40 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-08 21:19:40 +0000
commit3a5758e212f32f60f3a280213a0ebe356c4858ef (patch)
tree8569bb07401a77220d57a2b6d85f8002a78e61c5
parent24b2e0530af6871f7b152bf731d2c5f2208b1c06 (diff)
downloadtor-3a5758e212f32f60f3a280213a0ebe356c4858ef.tar
tor-3a5758e212f32f60f3a280213a0ebe356c4858ef.tar.gz
If we think of ourselves as authoritative, even if we're not
in the DirServers config lines, then we still are. This way we give ourselves the "Authority" flag in our network-status. svn:r6325
-rw-r--r--src/or/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 9dad060d6..64f637853 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1031,6 +1031,9 @@ router_digest_is_trusted_dir(const char *digest)
{
if (!trusted_dir_servers)
return 0;
+ if (get_options()->AuthoritativeDir &&
+ router_digest_is_me(digest))
+ return 1;
SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, ent,
if (!memcmp(digest, ent->digest, DIGEST_LEN)) return 1);
return 0;