summaryrefslogtreecommitdiff
path: root/src/feature/dirparse/ns_parse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-25 10:05:13 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-25 10:05:13 -0500
commit36f808c9364bb2e6781e555697eac977d754e905 (patch)
treee95fc5c5093b1391bd0ca179ffdee492497b385a /src/feature/dirparse/ns_parse.c
parent3741f9e524a2d3bd7239ca865d6169fd1e3dddb5 (diff)
downloadtor-36f808c9364bb2e6781e555697eac977d754e905.tar.gz
tor-36f808c9364bb2e6781e555697eac977d754e905.zip
Vote on the StaleDesc flag from prop293
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus.
Diffstat (limited to 'src/feature/dirparse/ns_parse.c')
-rw-r--r--src/feature/dirparse/ns_parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/dirparse/ns_parse.c b/src/feature/dirparse/ns_parse.c
index 3fccec1540..e0cdb2d46d 100644
--- a/src/feature/dirparse/ns_parse.c
+++ b/src/feature/dirparse/ns_parse.c
@@ -434,6 +434,8 @@ routerstatus_parse_entry_from_string(memarea_t *area,
rs->is_hs_dir = 1;
} else if (!strcmp(tok->args[i], "V2Dir")) {
rs->is_v2_dir = 1;
+ } else if (!strcmp(tok->args[i], "StaleDesc")) {
+ rs->is_staledesc = 1;
}
}
/* These are implied true by having been included in a consensus made