Skip to content
Snippets Groups Projects
Commit cb107279 authored by José M. Guisado's avatar José M. Guisado
Browse files

Warn about missing ContactInfo when MyFamily set


Operators should be warned when setting MyFamily in
addition to missing ContactInfo

Signed-off-by: default avatarJosé M. Guisado <guigom@riseup.net>
parent d1af4d65
No related branches found
No related tags found
No related merge requests found
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.
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment