aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-06-20 09:02:24 -0400
committerNick Mathewson <nickm@torproject.org>2014-06-20 09:02:24 -0400
commit456184c2a005d282df4bb1c92e0f3d80b52e99cb (patch)
tree7a9d71ba1d6fa3a6845557438b5673e9aa958e7a
parent922be84ca3eedddfcfd358a4728b7eb0405eb27b (diff)
downloadtor-456184c2a005d282df4bb1c92e0f3d80b52e99cb.tar
tor-456184c2a005d282df4bb1c92e0f3d80b52e99cb.tar.gz
Authorities also advertise caches-extra-info
(Whoops, thought I had committed this before) Improvement to 11683 fix. Based on patch from Karsten.
-rw-r--r--changes/bug116834
-rwxr-xr-xsrc/or/router.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/changes/bug11683 b/changes/bug11683
index 52f623c6c..ccbd2a523 100644
--- a/changes/bug11683
+++ b/changes/bug11683
@@ -3,4 +3,6 @@
documents, regardless of whether their server descriptor contains a
"caches-extra-info" line or not. Fixes part of #11683. Bugfix on
0.2.0.1-alpha.
-
+ - When running as a v3 directory authority, advertise that you serve
+ extra-info documents so that clients who want them can find them from
+ you too. Fixes part of bug #11683. Bugfix on 0.2.0.1-alpha.
diff --git a/src/or/router.c b/src/or/router.c
index 2cdbb0c8b..4fcd4a5b8 100755
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2371,7 +2371,8 @@ router_dump_router_to_string(routerinfo_t *router,
has_extra_info_digest ? "extra-info-digest " : "",
has_extra_info_digest ? extra_info_digest : "",
has_extra_info_digest ? "\n" : "",
- options->DownloadExtraInfo ? "caches-extra-info\n" : "",
+ (options->DownloadExtraInfo || options->V3AuthoritativeDir) ?
+ "caches-extra-info\n" : "",
onion_pkey, identity_pkey,
family_line,
we_are_hibernating() ? "hibernating 1\n" : "",