aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-11-16 00:13:25 -0500
committerRoger Dingledine <arma@torproject.org>2010-11-16 00:13:25 -0500
commita08a7e0fc69e68517d6aabac52c1b814994ca560 (patch)
treed837b7da493a8743d057373268bb24866f2db815 /src
parente0b922b7e643abaea95506a01409bf349651653f (diff)
downloadtor-a08a7e0fc69e68517d6aabac52c1b814994ca560.tar.gz
tor-a08a7e0fc69e68517d6aabac52c1b814994ca560.zip
warn more about AllowSingleHopExits
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index ebf4031ff4..e3d5e606f9 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3626,6 +3626,13 @@ options_validate(or_options_t *old_options, or_options_t *options,
"a non-default set of DirServers.");
}
+ if (options->AllowSingleHopExits && !options->DirServers) {
+ COMPLAIN("You have set AllowSingleHopExits; now your relay will allow "
+ "others to make one-hop exits. However, since by default most "
+ "clients avoid relays that set this option, most clients will "
+ "ignore you.");
+ }
+
/*XXXX022 checking for defaults manually like this is a bit fragile.*/
/* Keep changes to hard-coded values synchronous to man page and default