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

svn:r16961
This commit is contained in:
Karsten Loesing 2008-09-24 22:33:47 +00:00
parent 9a7098487b
commit f2ff3e74ae
4 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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;