[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16961: {tor} All relays now store and serve v2 hidden service descriptors (in tor/trunk: . doc src/or)



Author: kloesing
Date: 2008-09-24 18:33:47 -0400 (Wed, 24 Sep 2008)
New Revision: 16961

Modified:
   tor/trunk/ChangeLog
   tor/trunk/doc/tor.1.in
   tor/trunk/src/or/router.c
   tor/trunk/src/or/routerlist.c
Log:
All relays now store and serve v2 hidden service descriptors by default (not only directory mirrors).

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2008-09-24 22:29:22 UTC (rev 16960)
+++ tor/trunk/ChangeLog	2008-09-24 22:33:47 UTC (rev 16961)
@@ -32,10 +32,10 @@
       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 @@
       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

Modified: tor/trunk/doc/tor.1.in
===================================================================
--- tor/trunk/doc/tor.1.in	2008-09-24 22:29:22 UTC (rev 16960)
+++ tor/trunk/doc/tor.1.in	2008-09-24 22:33:47 UTC (rev 16961)
@@ -1087,7 +1087,8 @@
 .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

Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c	2008-09-24 22:29:22 UTC (rev 16960)
+++ tor/trunk/src/or/router.c	2008-09-24 22:33:47 UTC (rev 16961)
@@ -1702,8 +1702,7 @@
     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);

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2008-09-24 22:29:22 UTC (rev 16960)
+++ tor/trunk/src/or/routerlist.c	2008-09-24 22:33:47 UTC (rev 16961)
@@ -4959,7 +4959,7 @@
   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;