summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2008-09-11 20:06:04 +0000
committerKarsten Loesing <karsten.loesing@gmx.net>2008-09-11 20:06:04 +0000
commitf0a5ef804f4ce09fb8daa79aa23a57ccf65296e4 (patch)
tree58f3fc243b864bc2ef7ad43ad17405914844d433 /src/or/router.c
parent535e2074bc0929071f9063ac723feb90131dc4ce (diff)
downloadtor-f0a5ef804f4ce09fb8daa79aa23a57ccf65296e4.tar.gz
tor-f0a5ef804f4ce09fb8daa79aa23a57ccf65296e4.zip
Directory mirrors store and serve v2 hidden service descriptors by default.
svn:r16858
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 1132f9dca5..18e8abcfe1 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1702,7 +1702,8 @@ 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->HidServDirectoryV2 ? "opt hidden-service-dir\n" : "");
+ (options->DirPort && options->HidServDirectoryV2) ?
+ "opt hidden-service-dir\n" : "");
tor_free(family_line);
tor_free(onion_pkey);