summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-01-18 04:51:12 +0000
committerRoger Dingledine <arma@torproject.org>2008-01-18 04:51:12 +0000
commit3d3663a123873af350b6c3167481a013d05c2168 (patch)
tree9265ce3407f22be61cbadafba0a87bac5273b760 /src/or
parent62282136474053f69d99b7e4b2f7fcf7a7561e7f (diff)
downloadtor-3d3663a123873af350b6c3167481a013d05c2168.tar.gz
tor-3d3663a123873af350b6c3167481a013d05c2168.zip
Don't answer "/tor/networkstatus-bridges" directory requests if
the request isn't encrypted. svn:r13175
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 6e5c82bd79..5b29756a9d 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2337,7 +2337,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
smartlist_add(items, (char*)item);
} else if (!current && !strcmp(url, "consensus-signatures")) {
/* XXXX020 the spec says that we should implement
- * currrent/consensus-signatures too. Why? */
+ * current/consensus-signatures too. Why? -NM */
const char *item;
if ((item=dirvote_get_pending_detached_signatures()))
smartlist_add(items, (char*)item);
@@ -2620,6 +2620,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
if (options->BridgeAuthoritativeDir &&
options->BridgePassword &&
+ connection_dir_is_encrypted(conn) &&
!strcmp(url,"/tor/networkstatus-bridges")) {
char *status;
char decoded[64];