diff options
author | 2017-12-13 10:18:08 -0600 | |
---|---|---|
committer | 2017-12-13 11:18:08 -0500 | |
commit | 556a289d9a2ec04583b26c89712000aac578ae89 (patch) | |
tree | f62d4d7655f69c06cc1e64a52a0ba6cb293a02d9 /plugin/secondary | |
parent | a469a17cdfccfb435f819ebdf7ff7b43b207c8b4 (diff) | |
download | coredns-556a289d9a2ec04583b26c89712000aac578ae89.tar.gz coredns-556a289d9a2ec04583b26c89712000aac578ae89.tar.zst coredns-556a289d9a2ec04583b26c89712000aac578ae89.zip |
Moving TransferParse from file to its own package (#1286)
* Moving TransferParse from file to its own package
* Adding tests for parse
Diffstat (limited to 'plugin/secondary')
-rw-r--r-- | plugin/secondary/setup.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/secondary/setup.go b/plugin/secondary/setup.go index e2819197d..1e9a3f5fd 100644 --- a/plugin/secondary/setup.go +++ b/plugin/secondary/setup.go @@ -5,6 +5,7 @@ import ( "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin/file" "github.com/coredns/coredns/plugin/pkg/dnsutil" + "github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/proxy" "github.com/mholt/caddy" @@ -74,7 +75,7 @@ func secondaryParse(c *caddy.Controller) (file.Zones, error) { switch c.Val() { case "transfer": - t, f, e = file.TransferParse(c, true) + t, f, e = parse.Transfer(c, true) if e != nil { return file.Zones{}, e } |