Merge pull request #51 from r4um/master
Do not fail AXFR if first anwser is just SOA
This commit is contained in:
commit
980f5e9d63
6
xfr.go
6
xfr.go
|
@ -69,6 +69,12 @@ func (w *reply) axfrIn(q *Msg, c chan *Envelope) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
first = !first
|
first = !first
|
||||||
|
// only one answer that is SOA, receive more
|
||||||
|
if (len(in.Answer) == 1) {
|
||||||
|
w.tsigTimersOnly = true
|
||||||
|
c <- &Envelope{in.Answer, nil}
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !first {
|
if !first {
|
||||||
|
|
Loading…
Reference in New Issue