mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
if you tell people that IgnoreVersion exists,
some of them will use it rather than upgrade. svn:r852
This commit is contained in:
parent
3b78f5cb09
commit
4565150db2
1 changed files with 4 additions and 2 deletions
|
@ -506,11 +506,13 @@ int router_get_dir_from_string(char *s, crypto_pk_env_t *pkey)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (compare_recommended_versions(VERSION, directory->software_versions) < 0) {
|
if (compare_recommended_versions(VERSION, directory->software_versions) < 0) {
|
||||||
log(LOG_WARN, "You are running tor version %s, which is not recommended.\nPlease upgrade to one of %s.", VERSION, directory->software_versions);
|
log(options.IgnoreVersion ? LOG_WARN : LOG_ERR,
|
||||||
|
"You are running Tor version %s, which is not recommended.\n"
|
||||||
|
"Please upgrade to one of %s.",
|
||||||
|
VERSION, directory->software_versions);
|
||||||
if(options.IgnoreVersion) {
|
if(options.IgnoreVersion) {
|
||||||
log(LOG_WARN, "IgnoreVersion is set. If it breaks, we told you so.");
|
log(LOG_WARN, "IgnoreVersion is set. If it breaks, we told you so.");
|
||||||
} else {
|
} else {
|
||||||
log(LOG_ERR,"Set IgnoreVersion config variable if you want to proceed.");
|
|
||||||
fflush(0);
|
fflush(0);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue