|
@@ -1640,13 +1640,15 @@ directory_handle_command_post(connection_t *conn, char *headers,
|
|
if (!strcmpstart(url,"/tor/rendezvous/publish")) {
|
|
if (!strcmpstart(url,"/tor/rendezvous/publish")) {
|
|
/* rendezvous descriptor post */
|
|
/* rendezvous descriptor post */
|
|
if (rend_cache_store(body, body_len) < 0) {
|
|
if (rend_cache_store(body, body_len) < 0) {
|
|
- char tmp[1024*2+1];
|
|
|
|
|
|
+// char tmp[1024*2+1];
|
|
notice(LD_DIRSERV,"Rejected rend descriptor (length %d) from %s.",
|
|
notice(LD_DIRSERV,"Rejected rend descriptor (length %d) from %s.",
|
|
(int)body_len, origin);
|
|
(int)body_len, origin);
|
|
|
|
+#if 0
|
|
if (body_len <= 1024) {
|
|
if (body_len <= 1024) {
|
|
base16_encode(tmp, sizeof(tmp), body, body_len);
|
|
base16_encode(tmp, sizeof(tmp), body, body_len);
|
|
notice(LD_DIRSERV,"Body was: %s", tmp);
|
|
notice(LD_DIRSERV,"Body was: %s", tmp);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
write_http_status_line(conn, 400, "Invalid service descriptor rejected");
|
|
write_http_status_line(conn, 400, "Invalid service descriptor rejected");
|
|
} else {
|
|
} else {
|
|
write_http_status_line(conn, 200, "Service descriptor stored");
|
|
write_http_status_line(conn, 200, "Service descriptor stored");
|