diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-08-20 21:56:33 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2007-08-20 21:56:33 +0000 |
commit | f99ac7fe522c75775c39fa4ba11214ce794a8f62 (patch) | |
tree | 2b3ad75f3b34c64e717958d7d10b52cb6233c571 | |
parent | 05f12bffe994ebae05778a4c269bfdd24065f423 (diff) | |
download | tor-f99ac7fe522c75775c39fa4ba11214ce794a8f62.tar.gz tor-f99ac7fe522c75775c39fa4ba11214ce794a8f62.zip |
Remove /tor/dir-all-weaselhack, it's useless without FULL_V1_DIRECTORIES defined
svn:r11231
-rw-r--r-- | src/or/directory.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 3e3433718b..a6f39538a3 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2193,30 +2193,6 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers, goto done; } - if (!strcmp(url,"/tor/dir-all-weaselhack") && - (conn->_base.addr == 0x7f000001ul) && - authdir_mode_v2(options) && - !authdir_mode_bridge(options)) { - /* until weasel rewrites his scripts at noreply */ - char *new_directory=NULL; - - if (dirserv_dump_directory_to_string(&new_directory, - get_identity_key(), 1)) { - log_warn(LD_BUG, "Error creating full v1 directory."); - tor_free(new_directory); - write_http_status_line(conn, 503, "Directory unavailable"); - goto done; - } - - dlen = strlen(new_directory); - - write_http_response_header(conn, dlen, 0, 0); - - connection_write_to_buf(new_directory, dlen, TO_CONN(conn)); - tor_free(new_directory); - goto done; - } - /* we didn't recognize the url */ write_http_status_line(conn, 404, "Not found"); |