Fix typo in "retry"
This commit is contained in:
parent
dbad97ebc6
commit
a684bab9a4
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ func dnsQuery(fqdn string, rtype uint16, nameservers []string, recursive bool) (
|
||||||
m.RecursionDesired = false
|
m.RecursionDesired = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Will rety the request based on the number of servers (n+1)
|
// Will retry the request based on the number of servers (n+1)
|
||||||
for i := 1; i <= len(nameservers)+1; i++ {
|
for i := 1; i <= len(nameservers)+1; i++ {
|
||||||
ns := nameservers[i%len(nameservers)]
|
ns := nameservers[i%len(nameservers)]
|
||||||
in, err = dns.Exchange(m, ns)
|
in, err = dns.Exchange(m, ns)
|
||||||
|
|
Loading…
Reference in a new issue