mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Add default trusted-dir-server entries only when no dirserver lines are given in the config file
svn:r2467
This commit is contained in:
parent
508970f85d
commit
30dd1c87a5
@ -902,7 +902,6 @@ typedef struct {
|
||||
|
||||
struct config_line_t *DirServers; /**< List of configuration lines
|
||||
* for directory servers. */
|
||||
|
||||
} or_options_t;
|
||||
|
||||
/* XXX are these good enough defaults? */
|
||||
@ -1455,6 +1454,8 @@ int router_update_status_from_smartlist(routerinfo_t *r,
|
||||
time_t list_time,
|
||||
smartlist_t *running_list);
|
||||
void add_trusted_dir_server(const char *addr, uint16_t port,const char *digest);
|
||||
void clear_trusted_dir_servers(void);
|
||||
|
||||
|
||||
/********************************* routerparse.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,
|
||||
|
Loading…
Reference in New Issue
Block a user