summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-23 20:44:22 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-23 20:44:22 +0000
commitebf6476e8e5e7c77ca0efa17656511cd8cda364f (patch)
tree81b2969ae15d0e30b7eb68922745bc2cca30f8c6 /src/or/config.c
parent18a0a0e458801616d939ba5828df93f8c6e35436 (diff)
downloadtor-ebf6476e8e5e7c77ca0efa17656511cd8cda364f.tar.gz
tor-ebf6476e8e5e7c77ca0efa17656511cd8cda364f.zip
Provide dire warnings to any users who set DirServer; move it out of torrc.sample and into torrc.complete.
svn:r5132
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index fd9c2822fb..8970d8d7ed 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2101,6 +2101,7 @@ options_validate(or_options_t *options)
if (!options->DirServers) {
add_default_trusted_dirservers(options);
} else {
+ log_fn(LOG_WARN, "You have used DirServer to specify directory authorities in your configuration. This is potentially dangerous: it can make you look different from all other Tor users, and hurt your anonymity. Even if you've specified the same authorities as Tor uses by default, the defaults could change in the future. Be sure you know what you're doing.");
for (cl = options->DirServers; cl; cl = cl->next) {
if (parse_dir_server_line(cl->value, 1)<0)
result = -1;