mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Bugfix on r13098. Backport candidate.
When we made bridge authorities stop serving bridge descriptors over unencrypted links, we also broke DirPort reachability testing for bridges. So bridges with a non-zero DirPort were printing spurious warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709. svn:r17945
This commit is contained in:
+5
-3
@@ -1412,10 +1412,12 @@ router_rebuild_descriptor(int force)
|
||||
|
||||
ri->purpose =
|
||||
options->BridgeRelay ? ROUTER_PURPOSE_BRIDGE : ROUTER_PURPOSE_GENERAL;
|
||||
if (!options->BridgeRelay) {
|
||||
ri->cache_info.send_unencrypted = 1;
|
||||
ri->cache_info.send_unencrypted = 1;
|
||||
/* Let bridges serve their own descriptors unencrypted, so they can
|
||||
* pass reachability testing. (If they want to be harder to notice,
|
||||
* they can always leave the DirPort off). */
|
||||
if (!options->BridgeRelay)
|
||||
ei->cache_info.send_unencrypted = 1;
|
||||
}
|
||||
|
||||
router_get_router_hash(ri->cache_info.signed_descriptor_body,
|
||||
ri->cache_info.signed_descriptor_digest);
|
||||
|
||||
Reference in New Issue
Block a user