summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-10-07 00:50:39 +0000
committerRoger Dingledine <arma@torproject.org>2006-10-07 00:50:39 +0000
commit06e5b2283c6b3b256f098191e7b86a44f00b2ccb (patch)
tree42facd018edd0278c2f4ef6777f9fd3afad8890f /src/or/directory.c
parent8ba5471de3c4b26f19f021ee8035c507dc1915f3 (diff)
downloadtor-06e5b2283c6b3b256f098191e7b86a44f00b2ccb.tar.gz
tor-06e5b2283c6b3b256f098191e7b86a44f00b2ccb.zip
minor cleanups
svn:r8622
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 0c69b0b234..7d1766d6f5 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -129,6 +129,8 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
int directconn = !purpose_is_private(purpose);
authority_type_t type;
+ /* FFFF we could break this switch into its own function, and call
+ * it elsewhere in directory.c. -RD */
switch (purpose) {
case DIR_PURPOSE_FETCH_NETWORKSTATUS:
case DIR_PURPOSE_FETCH_SERVERDESC:
@@ -182,7 +184,7 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
if (!directconn) {
/* Never use fascistfirewall; we're going via Tor. */
if (purpose == DIR_PURPOSE_FETCH_RENDDESC) {
- /* only ask authdirservers, any of them will do */
+ /* only ask hidserv authorities, any of them will do */
rs = router_pick_trusteddirserver(HIDSERV_AUTHORITY, 0, 0,
retry_if_no_servers);
} else {
@@ -191,7 +193,7 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
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
- * there's no point in falling back to the authorities in this case. */
+ * there's no point in falling back to the authorities in this case. */
}
}