mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
make directories_have_accepted_server_descriptor() able to
handle non-default values of PublishServerDescriptor. svn:r11569
This commit is contained in:
parent
41f3d0eb27
commit
523ac934de
@ -190,8 +190,9 @@ int
|
||||
directories_have_accepted_server_descriptor(void)
|
||||
{
|
||||
smartlist_t *servers = router_get_trusted_dir_servers();
|
||||
or_options_t *options = get_options();
|
||||
SMARTLIST_FOREACH(servers, trusted_dir_server_t *, d, {
|
||||
if ((d->type & (V1_AUTHORITY|V2_AUTHORITY)) &&
|
||||
if ((d->type & options->_PublishServerDescriptor) &&
|
||||
!d->has_accepted_serverdesc) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user