mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 05:54:38 +03:00
during dnscheck, if srv accountconfig record with just a dot, for a non-existent service, is missing, show as warning instead of error
the suggested dns records mention that these records are optional, but the dnscheck makes it look serious. not helpful. also remove unneeded whitespace in list of errors/warnings. for issue #184 by morki, thanks for reporting!
This commit is contained in:
@ -2592,8 +2592,8 @@ const domainDNSCheck = async (d) => {
|
||||
if ((r.Errors || []).length === 0 && (r.Warnings || []).length === 0) {
|
||||
success = box(green, 'OK');
|
||||
}
|
||||
const errors = (r.Errors || []).length === 0 ? [] : box(red, dom.ul(style({ marginLeft: '1em' }), (r.Errors || []).map(s => dom.li(s))));
|
||||
const warnings = (r.Warnings || []).length === 0 ? [] : box(yellow, dom.ul(style({ marginLeft: '1em' }), (r.Warnings || []).map(s => dom.li(s))));
|
||||
const errors = (r.Errors || []).length === 0 ? [] : box(red, dom.ul((r.Errors || []).map(s => dom.li(s))));
|
||||
const warnings = (r.Warnings || []).length === 0 ? [] : box(yellow, dom.ul((r.Warnings || []).map(s => dom.li(s))));
|
||||
let instructions = null;
|
||||
if (r.Instructions && r.Instructions.length > 0) {
|
||||
instructions = dom.div(style({ margin: '.5ex 0' }));
|
||||
|
Reference in New Issue
Block a user