aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-13 19:56:42 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-13 19:56:42 +0000
commit30dd1c87a5ac1ebe7756bb48f7c94cb7f20de1da (patch)
treedc2bc8beb05c6d40eb02239d3a529f03cd43c2f0 /src/or/routerlist.c
parent508970f85dfe4539cfbfdfde556ed65b185331cd (diff)
downloadtor-30dd1c87a5ac1ebe7756bb48f7c94cb7f20de1da.tar
tor-30dd1c87a5ac1ebe7756bb48f7c94cb7f20de1da.tar.gz
Add default trusted-dir-server entries only when no dirserver lines are given in the config file
svn:r2467
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index a3aa23182..91575d7f1 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -27,7 +27,6 @@ static trusted_dir_server_t *
router_pick_trusteddirserver_impl(int requireother, int fascistfirewall);
static void mark_all_trusteddirservers_up(void);
static int router_resolve_routerlist(routerlist_t *dir);
-static void clear_trusted_dir_servers(void);
/****************************************************************************/
@@ -1162,7 +1161,7 @@ void add_trusted_dir_server(const char *addr, uint16_t port, const char *digest)
smartlist_add(trusted_dir_servers, ent);
}
-static void clear_trusted_dir_servers(void)
+void clear_trusted_dir_servers(void)
{
if (trusted_dir_servers) {
SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, ent,