summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-15 12:38:11 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-15 12:38:11 -0400
commit8b4728ebd681c395e4a34eabf50035ebd1f05d7d (patch)
treed76b12896da2233f09c3d4c1579afe9c8f5790bc /src/or
parent0cf327dc7874ae0a021054b78cbb7b24a11aa8fe (diff)
parent686aaa5c4c95ebd2c3ddfe46a237014e2813a9e7 (diff)
downloadtor-8b4728ebd681c395e4a34eabf50035ebd1f05d7d.tar.gz
tor-8b4728ebd681c395e4a34eabf50035ebd1f05d7d.zip
Merge remote-tracking branch 'public/bug8180_023_v2' into maint-0.2.4
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 15138f9d7b..2b94b8316f 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2001 Matej Pfajfar.
+ /* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2013, The Tor Project, Inc. */
@@ -2601,9 +2601,9 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (options->UseBridges && options->EntryNodes)
REJECT("You cannot set both UseBridges and EntryNodes.");
- if (options->EntryNodes && !options->UseEntryGuards)
- log_warn(LD_CONFIG, "EntryNodes is set, but UseEntryGuards is disabled. "
- "EntryNodes will be ignored.");
+ if (options->EntryNodes && !options->UseEntryGuards) {
+ REJECT("If EntryNodes is set, UseEntryGuards must be enabled.");
+ }
options->AllowInvalid_ = 0;
if (options->AllowInvalidNodes) {