diff options
author | 2016-10-02 19:41:00 +0100 | |
---|---|---|
committer | 2016-10-02 19:41:00 +0100 | |
commit | cc486fb900c20fce761993c102763449d14a1188 (patch) | |
tree | cbe00457ea279cc5395f48fe40df007906df8d6d /middleware/secondary/setup.go | |
parent | 560f11d1484c7fe0a729832ba3f6c3ef4f6f58e0 (diff) | |
download | coredns-cc486fb900c20fce761993c102763449d14a1188.tar.gz coredns-cc486fb900c20fce761993c102763449d14a1188.tar.zst coredns-cc486fb900c20fce761993c102763449d14a1188.zip |
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
Diffstat (limited to 'middleware/secondary/setup.go')
-rw-r--r-- | middleware/secondary/setup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/secondary/setup.go b/middleware/secondary/setup.go index eb112faf9..d239053ff 100644 --- a/middleware/secondary/setup.go +++ b/middleware/secondary/setup.go @@ -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 } |