diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-21 00:12:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-21 00:12:42 +0000 |
commit | 73ffcc5cefce466d029709e8729b5f123981f0fb (patch) | |
tree | c24bfd70243d79068fa1e767d2709ef2006aab25 /src/or/directory.c | |
parent | 0da256ef976076709f7bbf503e6b6bc50a403380 (diff) | |
download | tor-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.c | 4 |
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 */ |