diff options
author | Neel Chauhan <neel@neelc.org> | 2019-12-05 19:06:35 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-16 10:40:14 -0400 |
commit | 460b97380bdb7187c2b2e924aa1a2940afd6035d (patch) | |
tree | 77e8ed73f545ac4cc6cc13ba7de6dfef39dc1e10 /src/feature/dirauth | |
parent | 8933c7908d9d894f50d46c7962457fa512190e1b (diff) | |
download | tor-460b97380bdb7187c2b2e924aa1a2940afd6035d.tar.gz tor-460b97380bdb7187c2b2e924aa1a2940afd6035d.zip |
Reject 0.2.9 and 0.4.0 in dirserv_rejects_tor_version()
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r-- | src/feature/dirauth/process_descs.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/feature/dirauth/process_descs.c b/src/feature/dirauth/process_descs.c index 760560a5d9..b4dbc8975b 100644 --- a/src/feature/dirauth/process_descs.c +++ b/src/feature/dirauth/process_descs.c @@ -326,22 +326,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; } |