Pārlūkot izejas kodu

All relays now store and serve v2 hidden service descriptors by default (not only directory mirrors).

svn:r16961
Karsten Loesing 17 gadi atpakaļ
vecāks
revīzija
f2ff3e74ae
4 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  1. 6 4
      ChangeLog
  2. 2 1
      doc/tor.1.in
  3. 1 2
      src/or/router.c
  4. 1 1
      src/or/routerlist.c

+ 6 - 4
ChangeLog

@@ -32,10 +32,10 @@ Changes in version 0.2.1.6-alpha - 2008-09-xx
       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
 
   o Major features:
-    - Directory mirrors now store and serve v2 hidden service descriptors
-      by default (i.e. new default value for HidServDirectoryV2 is 1).
-      This is the last step in proposal 114, which aims to make hidden
-      service connections more reliable.
+    - Relays now store and serve v2 hidden service descriptors by default
+      (i.e. new default value for HidServDirectoryV2 is 1). This is the
+      last step in proposal 114, which aims to make hidden service
+      connections more reliable.
 
   o Minor bugfixes:
     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
@@ -71,6 +71,8 @@ Changes in version 0.2.1.6-alpha - 2008-09-xx
       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
     - Better logging about stability/reliability calculations on directory
       servers.
+    - Drop the requirement to have an open dir port for storing and serving
+      v2 hidden service descriptors.
 
   o Code simplifications and refactoring:
     - Revise the connection_new functions so that a more typesafe variant

+ 2 - 1
doc/tor.1.in

@@ -1087,7 +1087,8 @@ usage to a file \fBhsusage\fP  in its data directory. (Default: 0)
 .TP
 \fBHidServDirectoryV2 \fR\fB0\fR|\fB1\fR\fP
 When this option is set, Tor accepts and serves v2 hidden service
-descriptors. (Default: 1)
+descriptors. Setting DirPort is not required for this, because clients
+connect via the ORPort by default. (Default: 1)
 .LP
 .TP
 \fBBridgeAuthoritativeDir \fR\fB0\fR|\fB1\fR\fP

+ 1 - 2
src/or/router.c

@@ -1702,8 +1702,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
     onion_pkey, identity_pkey,
     family_line,
     we_are_hibernating() ? "opt hibernating 1\n" : "",
-    (options->DirPort && options->HidServDirectoryV2) ?
-        "opt hidden-service-dir\n" : "");
+    options->HidServDirectoryV2 ? "opt hidden-service-dir\n" : "");
 
   tor_free(family_line);
   tor_free(onion_pkey);

+ 1 - 1
src/or/routerlist.c

@@ -4959,7 +4959,7 @@ hid_serv_acting_as_directory(void)
   routerstatus_t *rs;
   if (!me)
     return 0;
-  if (!get_options()->DirPort || !get_options()->HidServDirectoryV2) {
+  if (!get_options()->HidServDirectoryV2) {
     log_info(LD_REND, "We are not acting as hidden service directory, "
                       "because we have not been configured as such.");
     return 0;