[or-cvs] r11231: Remove /tor/dir-all-weaselhack, it's useless without FULL_V1 (tor/trunk/src/or)
weasel at seul.org
weasel at seul.org
Mon Aug 20 21:56:33 UTC 2007
Author: weasel
Date: 2007-08-20 17:56:33 -0400 (Mon, 20 Aug 2007)
New Revision: 11231
Modified:
tor/trunk/src/or/directory.c
Log:
Remove /tor/dir-all-weaselhack, it's useless without FULL_V1_DIRECTORIES defined
Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c 2007-08-20 20:07:04 UTC (rev 11230)
+++ tor/trunk/src/or/directory.c 2007-08-20 21:56:33 UTC (rev 11231)
@@ -2193,30 +2193,6 @@
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");
More information about the tor-commits
mailing list