mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
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
This commit is contained in:
parent
60efd6b726
commit
2050b31bb9
@ -2413,7 +2413,7 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
|
|||||||
!strcmp(url,"/tor/")) { /* server descriptor post */
|
!strcmp(url,"/tor/")) { /* server descriptor post */
|
||||||
const char *msg = NULL;
|
const char *msg = NULL;
|
||||||
uint8_t purpose = authdir_mode_bridge(options) ?
|
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);
|
int r = dirserv_add_multiple_descriptors(body, purpose, &msg);
|
||||||
tor_assert(msg);
|
tor_assert(msg);
|
||||||
if (r > 0)
|
if (r > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user