From 85c80adf4a75e1f44250379a4806796a26e861e3 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 14 Jul 2017 16:37:13 -0400 Subject: prop224: HSDir v3 support is >= 0.3.0.8 Because of bug #22447, we have to select nodes that are at least this version. Signed-off-by: David Goulet --- src/or/routerparse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/routerparse.c') diff --git a/src/or/routerparse.c b/src/or/routerparse.c index f4e87a00d8..ec63aef4d4 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2718,6 +2718,11 @@ routerstatus_parse_entry_from_string(memarea_t *area, tor_version_as_new_as(tok->args[0], "0.2.4.8-alpha"); rs->protocols_known = 1; } + if (!strcmpstart(tok->args[0], "Tor ") && found_protocol_list) { + /* Bug #22447 forces us to filter on this version. */ + rs->supports_v3_hsdir = + tor_version_as_new_as(tok->args[0], "0.3.0.8"); + } if (vote_rs) { vote_rs->version = tor_strdup(tok->args[0]); } -- cgit v1.2.3-54-g00ecf