diff options
author | George Kadianakis <desnacked@riseup.net> | 2021-02-24 12:35:55 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2021-02-24 12:35:55 +0200 |
commit | 830b0f8c6290cf222527c0956ba6d7fe95688b83 (patch) | |
tree | 555bb977228a824b0fde36393ec27e7b6d98a01d /src/feature/nodelist | |
parent | 6edb648aa0f23a507e7557a07fd291d6c3ad7747 (diff) | |
parent | 88559aca2d9487a9b101bb563b1ddf857a013962 (diff) | |
download | tor-830b0f8c6290cf222527c0956ba6d7fe95688b83.tar.gz tor-830b0f8c6290cf222527c0956ba6d7fe95688b83.zip |
Merge remote-tracking branch 'tor-gitlab/mr/306'
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r-- | src/feature/nodelist/fmt_routerstatus.c | 3 | ||||
-rw-r--r-- | src/feature/nodelist/routerstatus_st.h | 1 |
2 files changed, 3 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":""); diff --git a/src/feature/nodelist/routerstatus_st.h b/src/feature/nodelist/routerstatus_st.h index 254ba73f7f..ef8687db76 100644 --- a/src/feature/nodelist/routerstatus_st.h +++ b/src/feature/nodelist/routerstatus_st.h @@ -58,6 +58,7 @@ struct routerstatus_t { */ unsigned int is_staledesc:1; /** True iff the authorities think this router * should upload a new descriptor soon. */ + unsigned int is_sybil:1; /** True iff this router is a sybil. */ unsigned int has_bandwidth:1; /**< The vote/consensus had bw info */ unsigned int has_exitsummary:1; /**< The vote/consensus had exit summaries */ |