]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Accept hs descriptors even if we don't see an HSDir for us
authorNick Mathewson <nickm@torproject.org>
Thu, 12 May 2011 04:51:11 +0000 (00:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 May 2011 04:53:07 +0000 (00:53 -0400)
The old behavior contributed to unreliability when hidden services and
hsdirs had different consensus versions, and so had different opinions
about who should be cacheing hsdir info.

Bugfix on 0.2.0.10-alpha; based on discussions surrounding bug 2732.

changes/bug2732-simple [new file with mode: 0644]
src/or/routerlist.c

diff --git a/changes/bug2732-simple b/changes/bug2732-simple
new file mode 100644 (file)
index 0000000..3678361
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor bugfixes
+    - Do not reject hidden service descriptors simply because we don't
+      think we have not been assigned the HSDir flag.  Clients and
+      hidden services can have a more up-to-date view of the network
+      consensus, and if they think that the directory authorities
+      list us a HSDir, we might actually be one.  Related to bug 2732;
+      bugfix on 0.2.0.10-alpha.
index f567ccdf3cc335d978ecf457115ac7c1759a0b58..354e026306346eae9962daeae3175a1be0b0f459 100644 (file)
@@ -5778,11 +5778,6 @@ hid_serv_acting_as_directory(void)
              "being a hidden service directory.");
     return 0;
   }
-  if (!rs->is_hs_dir) {
-    log_info(LD_REND, "We're not listed as a hidden service directory in "
-             "the consensus, so we won't be one.");
-    return 0;
-  }
   return 1;
 }