aboutsummaryrefslogtreecommitdiff
path: root/plugin/deprecated/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/deprecated/setup.go')
-rw-r--r--plugin/deprecated/setup.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugin/deprecated/setup.go b/plugin/deprecated/setup.go
index 36c13bdb6..782f36f04 100644
--- a/plugin/deprecated/setup.go
+++ b/plugin/deprecated/setup.go
@@ -20,7 +20,7 @@ import (
)
// removed has the names of the plugins that need to error on startup.
-var removed = []string{"reverse"}
+var removed = []string{""}
func setup(c *caddy.Controller) error {
c.Next()
@@ -29,10 +29,7 @@ func setup(c *caddy.Controller) error {
}
func init() {
- for _, plugin := range removed {
- caddy.RegisterPlugin(plugin, caddy.Plugin{
- ServerType: "dns",
- Action: setup,
- })
+ for _, plug := range removed {
+ plugin.Register(plug, setup)
}
}