mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Merge remote-tracking branch 'origin/maint-0.2.4'
This commit is contained in:
commit
f48daef299
7
changes/bug8180
Normal file
7
changes/bug8180
Normal file
@ -0,0 +1,7 @@
|
||||
o Minor bugfixes (security usability):
|
||||
- Elevate the severity of the warning message when setting
|
||||
EntryNodes but disabling UseGuardNodes to an error. The outcome
|
||||
of letting Tor procede with those options enabled (which causes
|
||||
EntryNodes to get ignored) is sufficiently different from what
|
||||
was expected that it's best to just refuse to proceed. Fixes bug
|
||||
8180; bugfix on 0.2.3.11-alpha.
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user