diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-14 16:37:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:34 -0400 |
commit | 85c80adf4a75e1f44250379a4806796a26e861e3 (patch) | |
tree | 812aa3d5804ba7b23d0099f9cfa7219bb54124c5 /src/or/nodelist.c | |
parent | 2cae4f41006cd1885c33870232a040f98ffd6597 (diff) | |
download | tor-85c80adf4a75e1f44250379a4806796a26e861e3.tar.gz tor-85c80adf4a75e1f44250379a4806796a26e861e3.zip |
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index 117598cf1b..1666fffb7a 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -55,6 +55,7 @@ #include "rendservice.h" #include "router.h" #include "routerlist.h" +#include "routerparse.h" #include "routerset.h" #include "torcert.h" @@ -797,6 +798,10 @@ node_supports_v3_hsdir(const node_t *node) if (node->ri->protocol_list == NULL) { return 0; } + if (node->ri->platform) { + /* Bug #22447 forces us to filter on this version. */ + return tor_version_as_new_as(node->ri->platform, "0.3.0.8"); + } return protocol_list_supports_protocol(node->ri->protocol_list, PRT_HSDIR, PROTOVER_HSDIR_V3); } |