summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-09-27 20:46:28 +0000
committerNick Mathewson <nickm@torproject.org>2007-09-27 20:46:28 +0000
commit2050b31bb90861c6cbf8cfc54299f5a7f10609a2 (patch)
treea3d75466bc4cca9dfa4875527a8f2f75521c9678
parent60efd6b726728a1022e5845a711e640b08d7b93b (diff)
downloadtor-2050b31bb90861c6cbf8cfc54299f5a7f10609a2.tar.gz
tor-2050b31bb90861c6cbf8cfc54299f5a7f10609a2.zip
r15421@catbus: nickm | 2007-09-27 15:44:17 -0400
When we are a bridge directory, add bridges with purpose BRIDGE, not with purpose CONTROLLER. Roger, is this right? svn:r11679
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 09f3a7c83c..290abec347 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2413,7 +2413,7 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
!strcmp(url,"/tor/")) { /* server descriptor post */
const char *msg = NULL;
uint8_t purpose = authdir_mode_bridge(options) ?
- ROUTER_PURPOSE_CONTROLLER : ROUTER_PURPOSE_GENERAL;
+ ROUTER_PURPOSE_BRIDGE : ROUTER_PURPOSE_GENERAL;
int r = dirserv_add_multiple_descriptors(body, purpose, &msg);
tor_assert(msg);
if (r > 0)