aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-03-16 10:40:55 -0400
committerNick Mathewson <nickm@torproject.org>2020-03-16 10:40:55 -0400
commit452398913a11e9bf21d6a0ef0a8d8eac054cc636 (patch)
treeed6e610dcce4387b6a0210af2fbb902353060f42 /src/feature/dirauth
parent9ef8f5d1b8c646d1383327a3d45cddf27ab4b886 (diff)
parent460b97380bdb7187c2b2e924aa1a2940afd6035d (diff)
downloadtor-452398913a11e9bf21d6a0ef0a8d8eac054cc636.tar.gz
tor-452398913a11e9bf21d6a0ef0a8d8eac054cc636.zip
Merge branch 'ticket32672_041_squashed' into ticket32672_042_squashed_w_test
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r--src/feature/dirauth/process_descs.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/feature/dirauth/process_descs.c b/src/feature/dirauth/process_descs.c
index 71e3195c01..bc6a076946 100644
--- a/src/feature/dirauth/process_descs.c
+++ b/src/feature/dirauth/process_descs.c
@@ -331,22 +331,21 @@ dirserv_rejects_tor_version(const char *platform,
static const char please_upgrade_string[] =
"Tor version is insecure or unsupported. Please upgrade!";
- /* Versions before Tor 0.2.9 are unsupported. Versions between 0.2.9.0 and
- * 0.2.9.4 suffer from bug #20499, where relays don't keep their consensus
- * up to date */
- if (!tor_version_as_new_as(platform,"0.2.9.5-alpha")) {
+ /* Versions before Tor 0.3.5 are unsupported.
+ *
+ * Also, reject unstable versions of 0.3.5, since (as of this writing)
+ * they are almost none of the network. */
+ if (!tor_version_as_new_as(platform,"0.3.5.7")) {
if (msg)
*msg = please_upgrade_string;
return true;
}
- /* Series between Tor 0.3.0 and 0.3.4 inclusive are unsupported, and some
- * have bug #27841, which makes them broken as intro points. Reject them.
- *
- * Also reject unstable versions of 0.3.5, since (as of this writing)
- * they are almost none of the network. */
- if (tor_version_as_new_as(platform,"0.3.0.0-alpha-dev") &&
- !tor_version_as_new_as(platform,"0.3.5.7")) {
+ /* Series between Tor 0.3.6 and 0.4.1.4-rc inclusive are unsupported.
+ * Reject them. 0.3.6.0-alpha-dev only existed for a short time, before
+ * it was renamed to 0.4.0.0-alpha-dev. */
+ if (tor_version_as_new_as(platform,"0.3.6.0-alpha-dev") &&
+ !tor_version_as_new_as(platform,"0.4.1.5")) {
if (msg) {
*msg = please_upgrade_string;
}