mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
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:
parent
df105a028c
commit
a9f11b8fa3
1 changed files with 1 additions and 0 deletions
|
@ -1617,6 +1617,7 @@ func prepareDynamicConfig(ctx context.Context, log mlog.Log, dynamicPath string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.MonitorDNSBLZones = nil
|
||||||
for _, s := range c.MonitorDNSBLs {
|
for _, s := range c.MonitorDNSBLs {
|
||||||
d, err := dns.ParseDomain(s)
|
d, err := dns.ParseDomain(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue