]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Authorities also advertise caches-extra-info
authorNick Mathewson <nickm@torproject.org>
Fri, 20 Jun 2014 13:02:24 +0000 (09:02 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 20 Jun 2014 13:02:24 +0000 (09:02 -0400)
(Whoops, thought I had committed this before)

Improvement to 11683 fix. Based on patch from Karsten.

changes/bug11683
src/or/router.c

index 52f623c6c5a746156d1e813f64bdc7fddb072f78..ccbd2a523349a4de7c68eefd5d386f18bae5acef 100644 (file)
@@ -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.
index 2cdbb0c8bb14a8500b83eafc8115a90aec348134..4fcd4a5b894f4abbb9282be8d5c9493192bc6696 100755 (executable)
@@ -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" : "",