aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/fmt_routerstatus.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2021-02-12 15:43:48 -0800
committerNeel Chauhan <neel@neelc.org>2021-02-19 10:44:11 -0800
commit88559aca2d9487a9b101bb563b1ddf857a013962 (patch)
tree4ae714bff1fb59a48652048d5c916339543fbcb2 /src/feature/nodelist/fmt_routerstatus.c
parentb64fe4bf55e57c19bb0ade5fc08d6500ac561019 (diff)
downloadtor-88559aca2d9487a9b101bb563b1ddf857a013962.tar.gz
tor-88559aca2d9487a9b101bb563b1ddf857a013962.zip
Make dirauths vote the Sybil flag when other flags are zeroed out
Diffstat (limited to 'src/feature/nodelist/fmt_routerstatus.c')
-rw-r--r--src/feature/nodelist/fmt_routerstatus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/nodelist/fmt_routerstatus.c b/src/feature/nodelist/fmt_routerstatus.c
index 252b2e61fe..5c1e9309b9 100644
--- a/src/feature/nodelist/fmt_routerstatus.c
+++ b/src/feature/nodelist/fmt_routerstatus.c
@@ -87,7 +87,7 @@ routerstatus_format_entry(const routerstatus_t *rs, const char *version,
goto done;
smartlist_add_asprintf(chunks,
- "s%s%s%s%s%s%s%s%s%s%s%s\n",
+ "s%s%s%s%s%s%s%s%s%s%s%s%s\n",
/* These must stay in alphabetical order. */
rs->is_authority?" Authority":"",
rs->is_bad_exit?" BadExit":"",
@@ -98,6 +98,7 @@ routerstatus_format_entry(const routerstatus_t *rs, const char *version,
rs->is_flagged_running?" Running":"",
rs->is_stable?" Stable":"",
rs->is_staledesc?" StaleDesc":"",
+ rs->is_sybil?" Sybil":"",
rs->is_v2_dir?" V2Dir":"",
rs->is_valid?" Valid":"");