Skip to content

Commit 6ab3453

Browse files
committed
xdns/dnsutil: m struct{} instead of interface{}
1 parent b7642c1 commit 6ab3453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intra/xdns/dnsutil.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func Targets(msg *dns.Msg) (targets []string) {
406406
if msg == nil {
407407
return targets
408408
}
409-
touched := make(map[string]any)
409+
touched := make(map[string]struct{})
410410
if qname, err := NormalizeQName(QName(msg)); err == nil {
411411
targets = append(targets, qname)
412412
touched[qname] = struct{}{}
@@ -769,7 +769,7 @@ func SubstAAAARecords(out *dns.Msg, subip6s netip.Addr, ttl uint32) bool {
769769
return false
770770
}
771771
// substitute ips in any a / aaaa records
772-
touched := make(map[string]any)
772+
touched := make(map[string]struct{})
773773
rrs := make([]dns.RR, 0)
774774
i := 0
775775
for _, answer := range out.Answer {
@@ -803,7 +803,7 @@ func SubstARecords(out *dns.Msg, subip4s netip.Addr, ttl uint32) bool {
803803
return false
804804
}
805805
// substitute ips in any a / aaaa records
806-
touched := make(map[string]any)
806+
touched := make(map[string]struct{})
807807
rrs := make([]dns.RR, 0)
808808
i := 0
809809
for _, answer := range out.Answer {

0 commit comments

Comments
 (0)