diff options
author | Roger Dingledine <arma@torproject.org> | 2010-04-03 21:53:29 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-04-03 21:53:29 -0400 |
commit | 0324d3b0ec6d8ee0ec24c2e93915c9aa70e1665d (patch) | |
tree | 43ab12670839f7f70cd982c898ce1082c4a11afd /src | |
parent | 6b7e5eb5f1ee9d6ef24cbe7d96fa5388f7a54bf0 (diff) | |
download | tor-0324d3b0ec6d8ee0ec24c2e93915c9aa70e1665d.tar.gz tor-0324d3b0ec6d8ee0ec24c2e93915c9aa70e1665d.zip |
fetch relay descriptors from v3 authorities
Diffstat (limited to 'src')
-rw-r--r-- | src/or/directory.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 4153bca51b..7ec97d48e0 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -128,6 +128,8 @@ authority_type_to_string(authority_type_t auth) smartlist_add(lst, (void*)"V1"); if (auth & V2_AUTHORITY) smartlist_add(lst, (void*)"V2"); + if (auth & V3_AUTHORITY) + smartlist_add(lst, (void*)"V3"); if (auth & BRIDGE_AUTHORITY) smartlist_add(lst, (void*)"Bridge"); if (auth & HIDSERV_AUTHORITY) @@ -309,12 +311,14 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose, case DIR_PURPOSE_FETCH_EXTRAINFO: type = EXTRAINFO_CACHE | (router_purpose == ROUTER_PURPOSE_BRIDGE ? BRIDGE_AUTHORITY : - V2_AUTHORITY); + V3_AUTHORITY); break; case DIR_PURPOSE_FETCH_V2_NETWORKSTATUS: + type = V2_AUTHORITY; + break; case DIR_PURPOSE_FETCH_SERVERDESC: type = (router_purpose == ROUTER_PURPOSE_BRIDGE ? BRIDGE_AUTHORITY : - V2_AUTHORITY); + V3_AUTHORITY); break; case DIR_PURPOSE_FETCH_RENDDESC: type = HIDSERV_AUTHORITY; |