[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Clients no longer download descriptors for relays without ntor



commit a76d528bec970e500d3339d9e0f253bded17c338
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
Date:   Wed Jul 6 17:32:57 2016 +1000

    Clients no longer download descriptors for relays without ntor
---
 changes/reject-tap     | 2 ++
 src/or/networkstatus.c | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/changes/reject-tap b/changes/reject-tap
index 5b79485..77ca63b 100644
--- a/changes/reject-tap
+++ b/changes/reject-tap
@@ -5,4 +5,6 @@
     - Relays make sure their own descriptor has an ntor key.
     - Authorites no longer trust the version a relay claims (if any),
       instead, they check specifically for an ntor key.
+    - Clients avoid downloading a descriptor if the relay version is
+      too old to support ntor.
       Fixes bug 19163; bugfix on 0.2.4.18-rc.
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0dfb8af..61753e5 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;
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits