mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix bug2571: warn on EntryNodes set and UseEntryGuards disabled
This commit is contained in:
parent
8b4e7f9ac8
commit
782b7f49d8
3
changes/bug2571
Normal file
3
changes/bug2571
Normal file
@ -0,0 +1,3 @@
|
||||
- Minor features:
|
||||
- If EntryNodes are given, but UseEntryGuards is set to 0, warn that
|
||||
EntryNodes will have no effect. Resolves issue 2571.
|
@ -3566,6 +3566,10 @@ 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.");
|
||||
|
||||
options->_AllowInvalid = 0;
|
||||
if (options->AllowInvalidNodes) {
|
||||
SMARTLIST_FOREACH(options->AllowInvalidNodes, const char *, cp, {
|
||||
|
Loading…
Reference in New Issue
Block a user