aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/router.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index cd7a5658b9..9d4c3fdd18 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1322,6 +1322,13 @@ router_rebuild_descriptor(int force)
ri->cache_info.signed_descriptor_len =
strlen(ri->cache_info.signed_descriptor_body);
+ ri->purpose =
+ options->BridgeRelay ? ROUTER_PURPOSE_BRIDGE : ROUTER_PURPOSE_GENERAL;
+ if (!options->BridgeRelay) {
+ ri->cache_info.send_unencrypted = 1;
+ ei->cache_info.send_unencrypted = 1;
+ }
+
router_get_router_hash(ri->cache_info.signed_descriptor_body,
ri->cache_info.signed_descriptor_digest);