浏览代码

Have authorities reject routers running verions susceptible to bug 1038.

Nick Mathewson 15 年之前
父节点
当前提交
2af14b671d
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 6 0
      changes/bug2081_followup
  2. 5 0
      src/or/dirserv.c

+ 6 - 0
changes/bug2081_followup

@@ -0,0 +1,6 @@
+  o Minor features (authorities)
+    - Directory authorities now reject server running any version of
+      Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
+      known bugs that keep RELAY_EARY cells from working on rendezvous
+      circuits.  Followup to fix for bug 2081.
+

+ 5 - 0
src/or/dirserv.c

@@ -393,6 +393,11 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname,
     if (msg)
       *msg = "Tor version is far too old to work.";
     return FP_REJECT;
+  } else if (platform && tor_version_as_new_as(platform,"0.2.1.3-alpha")
+                      && !tor_version_as_new_as(platform, "0.2.1.19")) {
+    if (msg)
+      *msg = "Tor version is too buggy to work.";
+    return FP_REJECT;
   }
 
   result = dirserv_get_name_status(id_digest, nickname);