i++ _after_ exchanging... guh i need to stop using copilot

This commit is contained in:
Elizabeth Hunt 2024-04-07 19:44:30 -06:00
parent e2ce6804a7
commit 51ba25869a
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 2909B9A7FF6213EE
1 changed files with 1 additions and 1 deletions

View File

@ -29,8 +29,8 @@ func (h *DnsHandler) resolveExternal(domain string, qtype uint16) ([]dns.RR, err
i := 0
in, _, err := client.Exchange(message, h.DnsResolvers[i])
for err != nil && i < len(h.DnsResolvers) {
i++
in, _, err = client.Exchange(message, h.DnsResolvers[i])
i++
}
if err != nil {