summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-04-01 21:07:46 +0200
committerSebastian Hahn <sebastian@torproject.org>2015-04-01 21:07:46 +0200
commit86002a83d37287308543adfe44f3d5f2f4bdd3a5 (patch)
tree9ed5689b1de482d4fe75392d7e4efbc701ca8365 /src/or/entrynodes.c
parent081b0c0f770a05b4a6a60c23cd9f275f799a8742 (diff)
downloadtor-86002a83d37287308543adfe44f3d5f2f4bdd3a5.tar.gz
tor-86002a83d37287308543adfe44f3d5f2f4bdd3a5.zip
Bridges are always dirs
This check was accidentally deleted in 05f7336624d6a47b3cf0fe82.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index a9a92e2242..9663f34002 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -398,6 +398,9 @@ add_an_entry_guard(const node_t *chosen, int reset_status, int prepend,
entry->can_retry = 1;
}
entry->is_dir_cache = node_is_dir(node);
+ if (get_options()->UseBridges && node_is_a_configured_bridge(node))
+ entry->is_dir_cache = 1;
+
return NULL;
}
} else if (!for_directory) {