summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authornonameformee <545-nonameformee@gitlab.torproject.org>2023-03-12 11:40:52 +0000
committernonameformee <545-nonameformee@gitlab.torproject.org>2023-03-12 11:40:52 +0000
commit8f50f490a67fdbd13cb2ab8bec561d831c943676 (patch)
tree5885920b9d9951082a5ba2144dff052c097bef2b /src/feature
parent3fa08dc9a7041b82fd100d2fc30331c534723e17 (diff)
downloadtor-8f50f490a67fdbd13cb2ab8bec561d831c943676.tar.gz
tor-8f50f490a67fdbd13cb2ab8bec561d831c943676.zip
Update 3 files
- /src/feature/dirauth/process_descs.c - /src/test/test_process_descs.c - /changes/ticket40760
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/dirauth/process_descs.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/feature/dirauth/process_descs.c b/src/feature/dirauth/process_descs.c
index 3cdace452f..7fd930e246 100644
--- a/src/feature/dirauth/process_descs.c
+++ b/src/feature/dirauth/process_descs.c
@@ -404,17 +404,8 @@ dirserv_rejects_tor_version(const char *platform,
static const char please_upgrade_string[] =
"Tor version is insecure or unsupported. Please upgrade!";
- /* Anything before 0.4.5.6 is unsupported. Reject them. */
- if (!tor_version_as_new_as(platform,"0.4.5.6")) {
- if (msg) {
- *msg = please_upgrade_string;
- }
- return true;
- }
-
- /* Reject 0.4.6.x series. */
- if (tor_version_as_new_as(platform, "0.4.6.0") &&
- !tor_version_as_new_as(platform, "0.4.7.0-alpha-dev")) {
+ /* Anything before 0.4.7.0 is unsupported. Reject them. */
+ if (!tor_version_as_new_as(platform,"0.4.7.0-alpha-dev")) {
if (msg) {
*msg = please_upgrade_string;
}