diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-26 12:49:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-26 10:56:51 -0700 |
commit | e525f5697f9a0682b2cc24fa9779ebe9f0f3c233 (patch) | |
tree | 82d48a2023146861c13c04260faba130f2e7f996 /src/or/routerlist.c | |
parent | 90a6fe318cfae4d64fff034574153b8c96895a6c (diff) | |
download | tor-e525f5697f9a0682b2cc24fa9779ebe9f0f3c233.tar.gz tor-e525f5697f9a0682b2cc24fa9779ebe9f0f3c233.zip |
Use protocols to see when EXTEND2 support exists.
(Technically, we could just remove extend2 cell checking entirely,
since all Tor versions on our network are required to have it, but
let's keep this around as an example of How To Do It.)
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 56e2385ebe..0a03f13a56 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -5536,11 +5536,11 @@ routerstatus_version_supports_ntor(const routerstatus_t *rs, return allow_unknown_versions; } - if (!rs->version_known) { + if (!rs->version_known && !rs->protocols_known) { return allow_unknown_versions; } - return rs->version_supports_extend2_cells; + return rs->supports_extend2_cells; } /** Assert that the internal representation of <b>rl</b> is |