This commit is contained in:
Miek Gieben 2012-05-21 20:25:04 +02:00
parent 37a8bdfec0
commit 7b2745c51d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {