fix
This commit is contained in:
parent
37a8bdfec0
commit
7b2745c51d
|
@ -66,7 +66,7 @@ func addresses(conf *dns.ClientConfig, c *dns.Client, name string) []string {
|
||||||
forever:
|
forever:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case r := <-dns.DefaultReplyChan:
|
case r := <-dns.Incoming:
|
||||||
if r.Reply != nil && r.Reply.Rcode == dns.RcodeSuccess {
|
if r.Reply != nil && r.Reply.Rcode == dns.RcodeSuccess {
|
||||||
for _, aa := range r.Reply.Answer {
|
for _, aa := range r.Reply.Answer {
|
||||||
switch aa.(type) {
|
switch aa.(type) {
|
||||||
|
|
Loading…
Reference in New Issue