aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-01-06 23:37:48 +0000
committerRoger Dingledine <arma@torproject.org>2008-01-06 23:37:48 +0000
commit5a912aa1c8f671fe4388156ea608504c871bd142 (patch)
tree115f0209c4b0a590efa5e470e3ba681a914bc9c7 /src/or/directory.c
parentd73b7919693037024f5acd2cbea8b3125ccc7fb9 (diff)
downloadtor-5a912aa1c8f671fe4388156ea608504c871bd142.tar
tor-5a912aa1c8f671fe4388156ea608504c871bd142.tar.gz
cleanups on r13037
svn:r13045
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index aa6e02637..18c66f52b 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2727,18 +2727,17 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
!strcmpstart(url,"/tor/rendezvous2/publish")) {
switch (rend_cache_store_v2_desc_as_dir(body)) {
case -2:
- log_info(LD_REND, "Rejected rend descriptor (length %d) from %s.",
+ log_info(LD_REND, "Rejected v2 rend descriptor (length %d) from %s "
+ "since we're not currently a hidden service directory.",
(int)body_len, conn->_base.address);
write_http_status_line(conn, 503, "Currently not acting as v2 "
"hidden service directory");
- log_info(LD_REND, "Handled v2 rendezvous descriptor post: rejected");
break;
case -1:
- log_info(LD_REND, "Rejected rend descriptor (length %d) from %s.",
+ log_warn(LD_REND, "Rejected v2 rend descriptor (length %d) from %s.",
(int)body_len, conn->_base.address);
write_http_status_line(conn, 400, "Invalid service descriptor "
"rejected");
- log_info(LD_REND, "Handled v2 rendezvous descriptor post: rejected");
break;
default:
write_http_status_line(conn, 200, "Service descriptor stored");