fix typo in SRV validation message

_.tcp => ._tcp
This commit is contained in:
Sebastian Haas 2024-05-06 23:45:10 +02:00 committed by Mechiel Lukkien
parent a16c08681b
commit 587beb75b1

View file

@ -1393,7 +1393,7 @@ When enabling MTA-STS, or updating a policy, always update the policy first (thr
instr := "Ensure DNS records like the following exist:\n\n" instr := "Ensure DNS records like the following exist:\n\n"
r.SRVConf.SRVs = map[string][]net.SRV{} r.SRVConf.SRVs = map[string][]net.SRV{}
for _, req := range reqs { for _, req := range reqs {
name := req.name + "_.tcp." + domain.ASCII name := req.name + "._tcp." + domain.ASCII
instr += fmt.Sprintf("\t%s._tcp.%-*s SRV 0 1 %d %s\n", req.name, len("_submissions")-len(req.name)+len(domain.ASCII+"."), domain.ASCII+".", req.port, req.host) instr += fmt.Sprintf("\t%s._tcp.%-*s SRV 0 1 %d %s\n", req.name, len("_submissions")-len(req.name)+len(domain.ASCII+"."), domain.ASCII+".", req.port, req.host)
r.SRVConf.SRVs[req.name] = unptr(req.srvs) r.SRVConf.SRVs[req.name] = unptr(req.srvs)
if err != nil { if err != nil {