i++ _after_ exchanging... guh i need to stop using copilot
This commit is contained in:
parent
e2ce6804a7
commit
51ba25869a
|
@ -29,8 +29,8 @@ func (h *DnsHandler) resolveExternal(domain string, qtype uint16) ([]dns.RR, err
|
||||||
i := 0
|
i := 0
|
||||||
in, _, err := client.Exchange(message, h.DnsResolvers[i])
|
in, _, err := client.Exchange(message, h.DnsResolvers[i])
|
||||||
for err != nil && i < len(h.DnsResolvers) {
|
for err != nil && i < len(h.DnsResolvers) {
|
||||||
i++
|
|
||||||
in, _, err = client.Exchange(message, h.DnsResolvers[i])
|
in, _, err = client.Exchange(message, h.DnsResolvers[i])
|
||||||
|
i++
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue