diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-07 16:42:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-07 16:42:53 +0000 |
commit | 5c6c88e76d65c4817cd44048ad5803a4b0c1cb9e (patch) | |
tree | 1455921cbbfa0d2f52577a93cd7565ace01d9434 /src/or/router.c | |
parent | f7256b700766ba7195e8c34c07fcd966201eb71f (diff) | |
download | tor-5c6c88e76d65c4817cd44048ad5803a4b0c1cb9e.tar.gz tor-5c6c88e76d65c4817cd44048ad5803a4b0c1cb9e.zip |
More stuff for new directories.
- Distinguish v1 authorities (all currently trusted directories) from
v2 authorities (all trusted directories).
- Add configuration option for which dirs are v1 authories.
- Add configuration option for whether to be a v1 authority.
- Make trusted dirserver selection functions take options to
choose which functionality we need.
- Remove option when getting directory cache to see whether they
support running-routers; they all do now. Replace it with one
to see whether caches support v2 stuff.
- Parse, cache, and serve network-status objects properly.
- Serve compressed groups of router descriptors. The compression logic
here could be more memory-efficient.
-
svn:r4911
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index c360b7fba7..cabfcc26ea 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -368,7 +368,8 @@ init_keys(void) /* 6b. [authdirserver only] add own key to approved directories. */ crypto_pk_get_digest(get_identity_key(), digest); if (!router_digest_is_trusted_dir(digest)) { - add_trusted_dir_server(NULL, (uint16_t)options->DirPort, digest); + add_trusted_dir_server(NULL, (uint16_t)options->DirPort, digest, + options->V1AuthoritativeDir); } #if 0 /* 7. [authdirserver only] load old directory, if it's there */ |