diff options
Diffstat (limited to 'middleware/file/zone.go')
-rw-r--r-- | middleware/file/zone.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/file/zone.go b/middleware/file/zone.go index b84162cbb..ff8795d77 100644 --- a/middleware/file/zone.go +++ b/middleware/file/zone.go @@ -8,8 +8,8 @@ import ( "strings" "sync" - "github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware/file/tree" + "github.com/miekg/coredns/request" "github.com/fsnotify/fsnotify" "github.com/miekg/dns" @@ -102,7 +102,7 @@ func (z *Zone) Insert(r dns.RR) error { func (z *Zone) Delete(r dns.RR) { z.Tree.Delete(r) } // TransferAllowed checks if incoming request for transferring the zone is allowed according to the ACLs. -func (z *Zone) TransferAllowed(state middleware.State) bool { +func (z *Zone) TransferAllowed(req request.Request) bool { for _, t := range z.TransferTo { if t == "*" { return true |