[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Use authdir_mode_bridge() in set_bridge_running_callback()



commit 30279a7c575d2b27055e511a2f8cf84336387bb8
Author: Neel Chauhan <neel@xxxxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits