From 4533da06c97e81a44332f77af35d6c10ce505aff Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 30 Sep 2003 08:18:10 +0000 Subject: getting closer to having dirserv working we now add our own descriptor to the descriptor list and we rebuild the directory (and dump to disk) after receiving a POST svn:r509 --- src/or/directory.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index a250e7eed..b936484f4 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -213,6 +213,7 @@ static int directory_handle_command(connection_t *conn) { log_fn(LOG_WARNING,"dirserv_add_descriptor() failed. Dropping."); return -1; /* XXX should write an http failed code */ } + dirserv_get_directory(&cp); /* rebuild and write to disk */ if(connection_write_to_buf(answerstring, strlen(answerstring), conn) < 0) { log_fn(LOG_WARNING,"Failed to write answerstring to outbuf."); return -1; -- cgit v1.2.3