make it louder when we're running an unrecommended version.

also, we need to tell them what versions *are* recommended.
i'll add that to the todo.


svn:r5859
This commit is contained in:
Roger Dingledine 2006-01-24 03:45:58 +00:00
parent 52737a5e6d
commit 2eabf190e9

View file

@ -2750,10 +2750,12 @@ routers_update_all_from_networkstatus(void)
have_warned_about_new_version = 1; have_warned_about_new_version = 1;
} }
} else { } else {
notice(LD_GENERAL, "This version of Tor (%s) is %s, according to " warn(LD_GENERAL, "Please upgrade! "
"%d/%d recent network statuses.", "This version of Tor (%s) is %s, according to "
VERSION, consensus == VS_OLD ? "obsolete" : "not recommended", "%d/%d recent network statuses.",
n_recent-n_recommended, n_recent); VERSION, consensus == VS_OLD ? "obsolete" : "not recommended",
n_recent-n_recommended, n_recent);
/* XXX011 we need to tell them what versions *are* recommended! */
have_warned_about_old_version = 1; have_warned_about_old_version = 1;
} }
} else { } else {