aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-10 04:01:28 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-10 04:01:28 +0000
commitde6b3512e9dbab2038d467f71300c327aef46d8d (patch)
treef147c4ae3fe68207febc43fea8769c31bcafbdde /src/or/directory.c
parent34a09c24b59fa41edc1ad8b6f0d899cef877d273 (diff)
downloadtor-de6b3512e9dbab2038d467f71300c327aef46d8d.tar.gz
tor-de6b3512e9dbab2038d467f71300c327aef46d8d.zip
move a few more situations over to the authority_type_t bitfield
svn:r10151
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index f782feca2e..e03506a4f4 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -209,7 +209,7 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
}
if (!rs) {
/* anybody with a non-zero dirport will do */
- rs = router_pick_directory_server(1, 1, type==V2_AUTHORITY,
+ rs = router_pick_directory_server(1, 1, type,
retry_if_no_servers);
if (!rs) {
const char *which;
@@ -239,7 +239,7 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
retry_if_no_servers);
} else {
/* anybody with a non-zero dirport will do. Disregard firewalls. */
- rs = router_pick_directory_server(1, 0, type == V2_AUTHORITY,
+ rs = router_pick_directory_server(1, 0, type,
retry_if_no_servers);
/* If we have any hope of building an indirect conn, we know some router
* descriptors. If (rs==NULL), we can't build circuits anyway, so