diff options
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 3290b0f4f8..a0ed7393ed 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1997,7 +1997,9 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers, if (authdir_mode_handles_descs(options) && !strcmp(url,"/tor/")) { /* server descriptor post */ const char *msg = NULL; - int r = dirserv_add_multiple_descriptors(body, &msg); + uint8_t purpose = authdir_mode_bridge(options) ? + ROUTER_PURPOSE_CONTROLLER : ROUTER_PURPOSE_GENERAL; + int r = dirserv_add_multiple_descriptors(body, purpose, &msg); tor_assert(msg); if (r > 0) dirserv_get_directory(); /* rebuild and write to disk */ |