aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-21 00:12:42 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-21 00:12:42 +0000
commit73ffcc5cefce466d029709e8729b5f123981f0fb (patch)
treec24bfd70243d79068fa1e767d2709ef2006aab25 /src/or/directory.c
parent0da256ef976076709f7bbf503e6b6bc50a403380 (diff)
downloadtor-73ffcc5cefce466d029709e8729b5f123981f0fb.tar.gz
tor-73ffcc5cefce466d029709e8729b5f123981f0fb.zip
add a new advertised_server_mode() to distinguish ORs that
are willing to become servers from ones that really are servers. svn:r2071
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 d6c9da3b1b..41c1e8ed91 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -83,8 +83,8 @@ directory_get_from_dirserver(uint8_t purpose, const char *payload,
routerinfo_t *ds;
if (purpose == DIR_PURPOSE_FETCH_DIR) {
- if (server_mode()) {
- /* only ask authdirservers, don't ask myself */
+ if (advertised_server_mode()) {
+ /* only ask authdirservers, and don't ask myself */
ds = router_pick_directory_server(1, 1);
} else {
/* anybody with a non-zero dirport will do */