r12794@catbus: nickm | 2007-05-18 20:24:26 -0400

Make caches-extra-info lines parseable.


svn:r10215
This commit is contained in:
Nick Mathewson
2007-05-19 00:24:29 +00:00
parent 84c3a19170
commit adf95e7f00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -488,12 +488,12 @@ $Id$
used, and should still be recognized by new code until Tor 0.1.2.x
is obsolete.]
"caches-extra-info" 0|1 NL
"caches-extra-info" NL
[At most once.]
True if this router is a directory cache that provides extra-info
documents. If absent, the value should be treated as false.
Present only if this router is a directory cache that provides
extra-info documents.
[Versions before 0.2.0.1-alpha don't recognize this, and versions
before 0.1.2.5-alpha will reject descriptors containing it unless
+1 -1
View File
@@ -1357,7 +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" : "",
options->DownloadExtraInfo ? "opt caches-extra-info\n" : "",
onion_pkey, identity_pkey,
family_line, bandwidth_usage,
we_are_hibernating() ? "opt hibernating 1\n" : "");