[tor-commits] [tor/master] Use authdir_mode_bridge() in set_bridge_running_callback()
nickm at torproject.org
nickm at torproject.org
Fri Apr 26 00:28:08 UTC 2019
commit 30279a7c575d2b27055e511a2f8cf84336387bb8
Author: Neel Chauhan <neel at neelc.org>
Date: Thu Apr 11 20:28:11 2019 -0400
Use authdir_mode_bridge() in set_bridge_running_callback()
---
src/core/mainloop/mainloop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/mainloop/mainloop.c b/src/core/mainloop/mainloop.c
index 7609c630c..fd711fd3b 100644
--- a/src/core/mainloop/mainloop.c
+++ b/src/core/mainloop/mainloop.c
@@ -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) {
More information about the tor-commits
mailing list