From 4f7587a5ed64b2b5894157103d2d50f543434d64 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 28 Apr 2011 22:00:22 -0400 Subject: Tweak the startup message to be more helpful Instead of just saying "boogity boogity!" let's actually warn people that they need to configure stuff right to be safe, and point them at instructions for how to do that. Resolves bug 2474. --- src/or/main.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index a26be39fd..867dd60e9 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1886,9 +1886,19 @@ tor_init(int argc, char *argv[]) add_temp_log(LOG_NOTICE); } - log(LOG_NOTICE, LD_GENERAL, "Tor v%s. This is experimental software. " - "Do not rely on it for strong anonymity. (Running on %s)",get_version(), - get_uname()); + { + const char *version = get_version(); + log_notice(LD_GENERAL, "Tor v%s running on %s.", version, get_uname()); + + log_notice(LD_GENERAL, "WARNING: Tor can't help you if you use it wrong. " + "Learn how to be safe at " + "https://www.torproject.org/download/download#warning"); + + if (strstr(version, "alpha")) + log_notice(LD_GENERAL, "This is an alpha release; do not rely on it for " + "strong anonymity."); + } + if (network_init()<0) { log_err(LD_BUG,"Error initializing network; exiting."); -- cgit v1.2.3 From 2b4d4ffa8f2d893cf5df1480aa2db86e75e8292a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 23 Nov 2011 17:09:36 -0500 Subject: Tweak the "this is not a stable release" warning some more --- src/or/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index 867dd60e9..f6f47dba2 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1894,9 +1894,9 @@ tor_init(int argc, char *argv[]) "Learn how to be safe at " "https://www.torproject.org/download/download#warning"); - if (strstr(version, "alpha")) - log_notice(LD_GENERAL, "This is an alpha release; do not rely on it for " - "strong anonymity."); + if (strstr(version, "alpha") || strstr(version, "beta")) + log_notice(LD_GENERAL, "This version is not a stable Tor release. " + "Expect more bugs than usual."); } -- cgit v1.2.3