summaryrefslogtreecommitdiff
path: root/src/or/bridges.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-18 15:33:26 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-18 15:33:26 -0500
commita31a5581eecc900c9e3d7be78ea06a3ea7fe32a3 (patch)
treefc475732e4a79904fa7f42bd4c369f82b153fd12 /src/or/bridges.c
parent472b277207219d791a399d4d449af6ffdf00a081 (diff)
downloadtor-a31a5581eecc900c9e3d7be78ea06a3ea7fe32a3.tar.gz
tor-a31a5581eecc900c9e3d7be78ea06a3ea7fe32a3.zip
Remove UseDeprecatedGuardAlgorithm.
Diffstat (limited to 'src/or/bridges.c')
-rw-r--r--src/or/bridges.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/or/bridges.c b/src/or/bridges.c
index d9a8873c96..8b37f412ea 100644
--- a/src/or/bridges.c
+++ b/src/or/bridges.c
@@ -761,20 +761,13 @@ learned_bridge_descriptor(routerinfo_t *ri, int from_cache)
fmt_and_decorate_addr(&bridge->addr),
(int) bridge->port);
}
- if (get_options()->UseDeprecatedGuardAlgorithm) {
- tor_assert_nonfatal_unreached();
- } else {
- entry_guard_learned_bridge_identity(&bridge->addrport_configured,
- (const uint8_t*)ri->cache_info.identity_digest);
- }
+ entry_guard_learned_bridge_identity(&bridge->addrport_configured,
+ (const uint8_t*)ri->cache_info.identity_digest);
log_notice(LD_DIR, "new bridge descriptor '%s' (%s): %s", ri->nickname,
from_cache ? "cached" : "fresh", router_describe(ri));
/* set entry->made_contact so if it goes down we don't drop it from
* our entry node list */
- if (get_options()->UseDeprecatedGuardAlgorithm) {
- tor_assert_nonfatal_unreached();
- }
if (first) {
routerlist_retry_directory_downloads(now);
}