aboutsummaryrefslogtreecommitdiff
path: root/plugin/debug/debug.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-09-28 10:40:43 +0100
committerGravatar GitHub <noreply@github.com> 2019-09-28 10:40:43 +0100
commitba5d4a637271b302830e38af0092d798bd9ad668 (patch)
treeb2bebda7943bdc879653e6e5f96c45fbb64b9ef7 /plugin/debug/debug.go
parent4ff5635a6e5f5ab02498eea97323fafe4f3eccf6 (diff)
downloadcoredns-ba5d4a637271b302830e38af0092d798bd9ad668.tar.gz
coredns-ba5d4a637271b302830e38af0092d798bd9ad668.tar.zst
coredns-ba5d4a637271b302830e38af0092d798bd9ad668.zip
plugin register (#3321)
These plugins where missed in #3287 because their setup is done in a file other than setup.go Signed-off-by: Miek Gieben <miek@miek.nl>
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)