diff options
author | Roger Dingledine <arma@torproject.org> | 2008-01-18 04:51:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-01-18 04:51:12 +0000 |
commit | 3d3663a123873af350b6c3167481a013d05c2168 (patch) | |
tree | 9265ce3407f22be61cbadafba0a87bac5273b760 /src | |
parent | 62282136474053f69d99b7e4b2f7fcf7a7561e7f (diff) | |
download | tor-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')
-rw-r--r-- | src/or/directory.c | 3 |
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]; |