mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
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
This commit is contained in:
parent
24b2e0530a
commit
3a5758e212
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user