Update the message logged on relays when DirCache is disabled

Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the Guard
flag.

Fixes bug 24312; bugfix on 0.3.3.5-rc.
This commit is contained in:
teor 2018-08-23 19:10:39 +10:00
parent 8747afc5e0
commit 692efdad09
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 5 additions and 1 deletions

4
changes/bug24312 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (relays):
- Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the Guard
flag. Update the message logged on relays when DirCache is disabled.
Fixes bug 24312; bugfix on 0.3.3.5-rc.

View File

@ -4714,7 +4714,7 @@ have_enough_mem_for_dircache(const or_options_t *options, size_t total_mem,
} else { } else {
if (total_mem >= DIRCACHE_MIN_MEM_BYTES) { if (total_mem >= DIRCACHE_MIN_MEM_BYTES) {
*msg = tor_strdup("DirCache is disabled and we are configured as a " *msg = tor_strdup("DirCache is disabled and we are configured as a "
"relay. Many client versions will not choose us as a guard. "); "relay. We will not become a Guard.");
} }
} }
return *msg == NULL ? 0 : -1; return *msg == NULL ? 0 : -1;