mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
admin: in self-check for spf records against our ip's, don't try checking the unspecified addresses (0.0.0.0 and ::), and warn if there are no explicitly configured ips
based on question by spectral369 on #mox on matrix
This commit is contained in:
@ -684,6 +684,9 @@ func DomainSPFIPs() (ips []net.IP) {
|
||||
}
|
||||
for _, ipstr := range ipstrs {
|
||||
ip := net.ParseIP(ipstr)
|
||||
if ip.IsUnspecified() {
|
||||
continue
|
||||
}
|
||||
ips = append(ips, ip)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user