summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-11-23 16:46:38 -0800
committerNick Mathewson <nickm@torproject.org>2011-11-30 14:54:14 -0500
commit5f3e6eb0b9b450c81bd54d5dd87ff786a6d1ffea (patch)
treecf86b922ada316492511792e1a65e0b888c31837 /src/or/main.c
parent543a36a55ba04e860582e6db53d17e49814ebb81 (diff)
downloadtor-5f3e6eb0b9b450c81bd54d5dd87ff786a6d1ffea.tar.gz
tor-5f3e6eb0b9b450c81bd54d5dd87ff786a6d1ffea.zip
Warn loudly on startup and SIGHUP if Tor is built for a non-anonymous mode
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c5
1 files changed, 5 insertions, 0 deletions
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;