From 73ffcc5cefce466d029709e8729b5f123981f0fb Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 21 Jul 2004 00:12:42 +0000 Subject: add a new advertised_server_mode() to distinguish ORs that are willing to become servers from ones that really are servers. svn:r2071 --- src/or/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/directory.c') 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 */ -- cgit v1.2.3-54-g00ecf