mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Use authdir_mode_bridge() in set_bridge_running_callback()
This commit is contained in:
parent
aa9940ed21
commit
30279a7c57
@ -2594,7 +2594,7 @@ write_bridge_ns_callback(time_t now, const or_options_t *options)
|
|||||||
static int
|
static int
|
||||||
set_bridge_running_callback(time_t now, const or_options_t *options)
|
set_bridge_running_callback(time_t now, const or_options_t *options)
|
||||||
{
|
{
|
||||||
if (options->BridgeAuthoritativeDir) {
|
if (authdir_mode_bridge(options)) {
|
||||||
routerlist_t *rl = router_get_routerlist();
|
routerlist_t *rl = router_get_routerlist();
|
||||||
|
|
||||||
SMARTLIST_FOREACH_BEGIN(rl->routers, routerinfo_t *, ri) {
|
SMARTLIST_FOREACH_BEGIN(rl->routers, routerinfo_t *, ri) {
|
||||||
|
Loading…
Reference in New Issue
Block a user