aboutsummaryrefslogtreecommitdiff
path: root/plugin/debug/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/debug/debug.go')
-rw-r--r--plugin/debug/debug.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugin/debug/debug.go b/plugin/debug/debug.go
index 225e5f422..91cc6fcf0 100644
--- a/plugin/debug/debug.go
+++ b/plugin/debug/debug.go
@@ -7,12 +7,7 @@ import (
"github.com/caddyserver/caddy"
)
-func init() {
- caddy.RegisterPlugin("debug", caddy.Plugin{
- ServerType: "dns",
- Action: setup,
- })
-}
+func init() { plugin.Register("debug", setup) }
func setup(c *caddy.Controller) error {
config := dnsserver.GetConfig(c)