aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2012-09-18 16:50:00 -0400
committerRobert Ransom <rransom.8774@gmail.com>2012-09-18 16:50:00 -0400
commit130e899fbb02d6005e3797dea2099e4033345ebe (patch)
tree2fb994763582524cf8b146a9128fdeae31758f7e /src/or/config.c
parentd1c4cf2f5adbfa3810164d18428ee06ccbed6451 (diff)
downloadtor-130e899fbb02d6005e3797dea2099e4033345ebe.tar.gz
tor-130e899fbb02d6005e3797dea2099e4033345ebe.zip
Warn if HSes are configured on a client with UseEntryGuards disabled
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index affe2388bf..11f63efddc 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2536,6 +2536,15 @@ options_validate(or_options_t *old_options, or_options_t *options,
options->UseEntryGuards = 0;
}
+ if (!(options->UseEntryGuards) &&
+ (options->RendConfigLines != NULL)) {
+ log_warn(LD_CONFIG,
+ "UseEntryGuards is disabled, but you have configured one or more "
+ "hidden services on this Tor instance. Your hidden services "
+ "will be very easy to locate using a well-known attack -- see "
+ "http://freehaven.net/anonbib/#hs-attack06 for details.");
+ }
+
if (!(options->LearnCircuitBuildTimeout) &&
options->CircuitBuildTimeout < RECOMMENDED_MIN_CIRCUIT_BUILD_TIMEOUT) {
log_warn(LD_CONFIG,