From cb1072790f17cd43787a41c04b36a24833fbf7ee Mon Sep 17 00:00:00 2001 From: "José M. Guisado" Date: Thu, 31 Jan 2019 13:27:42 +0100 Subject: Warn about missing ContactInfo when MyFamily set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Operators should be warned when setting MyFamily in addition to missing ContactInfo Signed-off-by: José M. Guisado --- src/app/config/config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app/config/config.c') diff --git a/src/app/config/config.c b/src/app/config/config.c index 952b9cd301..6b9162a3df 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -4179,6 +4179,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; -- cgit v1.2.3-54-g00ecf