aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-18 21:19:19 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-18 21:19:19 +0000
commitec55cf526dc7707cca7588718ba1f99c1fe0a7f0 (patch)
tree890940702217c6c11753950eefafbaf923bf04dc /src/or/router.c
parenta18770487227bce6e356f169aa86bdef70370c76 (diff)
downloadtor-ec55cf526dc7707cca7588718ba1f99c1fe0a7f0.tar
tor-ec55cf526dc7707cca7588718ba1f99c1fe0a7f0.tar.gz
r12981@Kushana: nickm | 2007-05-18 14:12:19 -0400
First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG). svn:r10209
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 3328ce77d..877d4f851 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1341,7 +1341,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
"opt fingerprint %s\n"
"uptime %ld\n"
"bandwidth %d %d %d\n"
- "opt extra-info-digest %s\n"
+ "opt extra-info-digest %s\n%s"
"onion-key\n%s"
"signing-key\n%s"
"%s%s%s",
@@ -1357,6 +1357,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
(int) router->bandwidthburst,
(int) router->bandwidthcapacity,
extra_info_digest,
+ options->DownloadExtraInfo ? "opt caches-extra-info 1\n" : "",
onion_pkey, identity_pkey,
family_line, bandwidth_usage,
we_are_hibernating() ? "opt hibernating 1\n" : "");