aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 99ca23aba..c7bf5efa1 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1577,7 +1577,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
"opt extra-info-digest %s\n%s"
"onion-key\n%s"
"signing-key\n%s"
- "%s%s",
+ "%s%s%s",
router->nickname,
router->address,
router->or_port,
@@ -1593,7 +1593,9 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
options->DownloadExtraInfo ? "opt caches-extra-info\n" : "",
onion_pkey, identity_pkey,
family_line,
- we_are_hibernating() ? "opt hibernating 1\n" : "");
+ we_are_hibernating() ? "opt hibernating 1\n" : "",
+ options->HidServDirectoryV2 ? "opt hidden-service-dir\n" : "");
+
tor_free(family_line);
tor_free(onion_pkey);
tor_free(identity_pkey);