aboutsummaryrefslogtreecommitdiff
path: root/plugin/hosts/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/hosts/setup.go')
-rw-r--r--plugin/hosts/setup.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin/hosts/setup.go b/plugin/hosts/setup.go
index 35b0c5483..57413feed 100644
--- a/plugin/hosts/setup.go
+++ b/plugin/hosts/setup.go
@@ -9,7 +9,6 @@ import (
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
- "github.com/coredns/coredns/plugin/pkg/fall"
"github.com/mholt/caddy"
)
@@ -106,10 +105,9 @@ func hostsParse(c *caddy.Controller) (Hosts, error) {
for c.NextBlock() {
switch c.Val() {
case "fallthrough":
- h.Fall = fall.New()
- h.Fall.SetZones(c.RemainingArgs())
+ h.Fall.SetZonesFromArgs(c.RemainingArgs())
default:
- if h.Fall.IsNil() {
+ if len(h.Fall.Zones) == 0 {
line := strings.Join(append([]string{c.Val()}, c.RemainingArgs()...), " ")
inline = append(inline, line)
continue