summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-19 21:24:04 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-19 21:24:04 +0000
commit4565150db252ffb2e689cc290ab532ec3cac511c (patch)
tree0e1fd8279030192c216338238c6f45aa95efb990
parent3b78f5cb0922a9d9547216f5bbbad1e9f89f6cf4 (diff)
downloadtor-4565150db252ffb2e689cc290ab532ec3cac511c.tar.gz
tor-4565150db252ffb2e689cc290ab532ec3cac511c.zip
if you tell people that IgnoreVersion exists,
some of them will use it rather than upgrade. svn:r852
-rw-r--r--src/or/routers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/routers.c b/src/or/routers.c
index 7ad0bb4247..9ae174ce79 100644
--- a/src/or/routers.c
+++ b/src/or/routers.c
@@ -506,11 +506,13 @@ int router_get_dir_from_string(char *s, crypto_pk_env_t *pkey)
return -1;
}
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) {
log(LOG_WARN, "IgnoreVersion is set. If it breaks, we told you so.");
} else {
- log(LOG_ERR,"Set IgnoreVersion config variable if you want to proceed.");
fflush(0);
exit(0);
}