aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-30 08:18:10 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-30 08:18:10 +0000
commit4533da06c97e81a44332f77af35d6c10ce505aff (patch)
tree416adb4560a2a1ef46c4a2db10ba58c04dd87983 /src/or/directory.c
parent3ed7aedc11d85bde5d4da3f7d1a6bdadc037ac75 (diff)
downloadtor-4533da06c97e81a44332f77af35d6c10ce505aff.tar
tor-4533da06c97e81a44332f77af35d6c10ce505aff.tar.gz
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
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c1
1 files changed, 1 insertions, 0 deletions
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;