aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-06 17:32:57 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-15 09:55:49 +1000
commita76d528bec970e500d3339d9e0f253bded17c338 (patch)
treea048eef2bed6e0cbc17dc3eb092e1223678ced56 /src/or/networkstatus.c
parent24e8bb2d83666fddc5ba6c8f90665530807fac51 (diff)
downloadtor-a76d528bec970e500d3339d9e0f253bded17c338.tar.gz
tor-a76d528bec970e500d3339d9e0f253bded17c338.zip
Clients no longer download descriptors for relays without ntor
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0dfb8afcce..61753e5da1 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2272,6 +2272,10 @@ client_would_use_router(const routerstatus_t *rs, time_t now,
/* We'd drop it immediately for being too old. */
return 0;
}
+ if (rs->version_known && !rs->version_supports_extend2_cells) {
+ /* We'd ignore it because it doesn't support ntor. */
+ return 0;
+ }
return 1;
}