diff options
Diffstat (limited to 'plugin/health/setup.go')
-rw-r--r-- | plugin/health/setup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/health/setup.go b/plugin/health/setup.go index 070d5f2a1..12dd29c84 100644 --- a/plugin/health/setup.go +++ b/plugin/health/setup.go @@ -26,9 +26,9 @@ func setup(c *caddy.Controller) error { h := &health{Addr: addr} c.OnStartup(func() error { - for he := range healthers { - m := dnsserver.GetConfig(c).Handler(he) - if x, ok := m.(Healther); ok { + plugins := dnsserver.GetConfig(c).Handlers() + for _, p := range plugins { + if x, ok := p.(Healther); ok { h.h = append(h.h, x) } } |