mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 17:24:20 -04:00
middleware/file: transfer from does not make sense (#314)
Make it return an error when you use `transfer from` when you're not a secondary. Add tests as well. Fixes #310
This commit is contained in:
@@ -63,7 +63,7 @@ func secondaryParse(c *caddy.Controller) (file.Zones, error) {
|
||||
}
|
||||
|
||||
for c.NextBlock() {
|
||||
t, f, e := file.TransferParse(c)
|
||||
t, f, e := file.TransferParse(c, true)
|
||||
if e != nil {
|
||||
return file.Zones{}, e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user