mirror of
https://github.com/coredns/coredns.git
synced 2026-01-24 09:22:54 -05:00
This reverts commit 68f1dd5ddf.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
package auto
|
||||
|
||||
import (
|
||||
"github.com/coredns/coredns/plugin/transfer"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// Transfer implements the transfer.Transfer interface.
|
||||
func (a Auto) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
a.Zones.RLock()
|
||||
z, ok := a.Zones.Z[zone]
|
||||
a.Zones.RUnlock()
|
||||
|
||||
if !ok || z == nil {
|
||||
return nil, transfer.ErrNotAuthoritative
|
||||
}
|
||||
return z.Transfer(serial)
|
||||
}
|
||||
Reference in New Issue
Block a user