From b7cadc0db511c6fccd237bdc9787687f55a3c5f2 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 8 Apr 2006 21:59:15 +0000 Subject: If you're not a versioning dirserver, don't put the string "client-versions \nserver-versions \n" in your network status. svn:r6329 --- src/or/dirserv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 828507448b..a56582144d 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1348,8 +1348,8 @@ generate_v2_networkstatus(void) "contact %s\n" "published %s\n" "dir-options%s%s\n" - "client-versions %s\n" - "server-versions %s\n" + "%s%s" /* client versions %s */ + "%s%s%s" /* \nserver versions %s \n */ "dir-signing-key\n%s\n", hostname, ipaddr, (int)options->DirPort, fingerprint, @@ -1357,8 +1357,11 @@ generate_v2_networkstatus(void) published, naming ? " Names" : "", versioning ? " Versions" : "", + versioning ? "client-versions " : "", client_versions, + versioning ? "\nserver-versions " : "", server_versions, + versioning ? "\n" : "", identity_pkey); outp = status + strlen(status); endp = status + len; -- cgit v1.2.3-54-g00ecf