diff options
author | Neel Chauhan <neel@neelc.org> | 2019-04-03 11:36:52 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2019-04-03 15:27:33 -0400 |
commit | d4d77b277e72c74a47bd724531426d7f561607e4 (patch) | |
tree | b117062c2ac07a6f3aea7125880297112ee44bf2 /src/feature/nodelist | |
parent | 4efbb5d2c1cedd2ad6e8bf55e365c84bc99f4d66 (diff) | |
download | tor-d4d77b277e72c74a47bd724531426d7f561607e4.tar.gz tor-d4d77b277e72c74a47bd724531426d7f561607e4.zip |
Stop setting bridges running in networkstatus_getinfo_by_purpose()
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r-- | src/feature/nodelist/networkstatus.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c index ea9f12367f..bc12fa4075 100644 --- a/src/feature/nodelist/networkstatus.c +++ b/src/feature/nodelist/networkstatus.c @@ -2378,7 +2378,6 @@ networkstatus_getinfo_by_purpose(const char *purpose_string, time_t now) smartlist_t *statuses; const uint8_t purpose = router_purpose_from_string(purpose_string); routerstatus_t rs; - const int bridge_auth = authdir_mode_bridge(get_options()); if (purpose == ROUTER_PURPOSE_UNKNOWN) { log_info(LD_DIR, "Unrecognized purpose '%s' when listing router statuses.", @@ -2395,9 +2394,6 @@ networkstatus_getinfo_by_purpose(const char *purpose_string, time_t now) continue; if (ri->purpose != purpose) continue; - /* TODO: modifying the running flag in a getinfo is a bad idea */ - if (bridge_auth && ri->purpose == ROUTER_PURPOSE_BRIDGE) - dirserv_set_router_is_running(ri, now); /* then generate and write out status lines for each of them */ set_routerstatus_from_routerinfo(&rs, node, ri, now, 0); smartlist_add(statuses, networkstatus_getinfo_helper_single(&rs)); |