diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-10 18:20:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-10 18:20:04 +0000 |
commit | b84955285a3a4e07d82c71abefd37185b7c336ee (patch) | |
tree | 7c3375214d11889b012df2ea1beebac9e3357919 /src | |
parent | 10d86f76150bbb4fd37a17cc6f8c307c766d532b (diff) | |
download | tor-b84955285a3a4e07d82c71abefd37185b7c336ee.tar.gz tor-b84955285a3a4e07d82c71abefd37185b7c336ee.zip |
r17564@catbus: nickm | 2008-01-10 13:19:59 -0500
Fix bug in r13094: be sure to set the purpose and send_unencrypted fields correctly in our own routerinfo and extrainfo.
svn:r13098
Diffstat (limited to 'src')
-rw-r--r-- | src/or/router.c | 7 |
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); |