Use authdir_mode_bridge() in set_bridge_running_callback()

This commit is contained in:
Neel Chauhan 2019-04-11 20:28:11 -04:00
parent aa9940ed21
commit 30279a7c57

View File

@ -2594,7 +2594,7 @@ write_bridge_ns_callback(time_t now, const or_options_t *options)
static int
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();
SMARTLIST_FOREACH_BEGIN(rl->routers, routerinfo_t *, ri) {