From 5f3e6eb0b9b450c81bd54d5dd87ff786a6d1ffea Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Wed, 23 Nov 2011 16:46:38 -0800 Subject: Warn loudly on startup and SIGHUP if Tor is built for a non-anonymous mode --- src/or/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index 7008d388a1..266356a966 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2256,6 +2256,11 @@ tor_init(int argc, char *argv[]) "Expect more bugs than usual."); } +#ifdef NON_ANONYMOUS_MODE_ENABLED + log(LOG_WARN, LD_GENERAL, "This copy of Tor was compiled to run in a " + "non-anonymous mode. It will provide NO ANONYMITY."); +#endif + if (network_init()<0) { log_err(LD_BUG,"Error initializing network; exiting."); return -1; -- cgit v1.2.3-54-g00ecf