fix changing domains.conf through admin with new MonitorDNSBLs present

by not clearing the existing derived info, we would detect duplicate domains
and refuse the changed config.
This commit is contained in:
Mechiel Lukkien
2024-03-07 11:26:53 +01:00
parent df105a028c
commit a9f11b8fa3

View File

@ -1617,6 +1617,7 @@ func prepareDynamicConfig(ctx context.Context, log mlog.Log, dynamicPath string,
}
}
c.MonitorDNSBLZones = nil
for _, s := range c.MonitorDNSBLs {
d, err := dns.ParseDomain(s)
if err != nil {