tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 8f5a3c046004f7c820b779502f1c080ae64f0da9
parent a30f17f72fb4e016f1c0d7f8619fcb20fec29d16
Author: David Goulet <dgoulet@torproject.org>
Date:   Wed, 20 Feb 2019 11:45:58 -0500

Merge branch 'tor-github/pr/675'

Diffstat:
Achanges/ticket25110 | 4++++
Msrc/app/config/config.c | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/changes/ticket25110 b/changes/ticket25110 @@ -0,0 +1,4 @@ + o Minor bugfixes (logging, configuration): + - Warn operators when MyFamily option is set but ContactInfo + is missing, as the latter should be set too. + Fixes bug 25110; bugfix on 0.3.3.1-alpha. diff --git a/src/app/config/config.c b/src/app/config/config.c @@ -4188,6 +4188,10 @@ options_validate(or_options_t *old_options, or_options_t *options, "You should also make sure you aren't listing this bridge's " "fingerprint in any other MyFamily."); } + if (options->MyFamily_lines && !options->ContactInfo) { + log_warn(LD_CONFIG, "MyFamily is set but ContactInfo is not configured. " + "ContactInfo should always be set when MyFamily option is too."); + } if (normalize_nickname_list(&options->MyFamily, options->MyFamily_lines, "MyFamily", msg)) return -1;