mirror of
https://github.com/coredns/coredns.git
synced 2025-11-16 00:42:16 -05:00
just use setup (#1574)
All these functions are namespaced by their package anyway; just use setup().
This commit is contained in:
@@ -10,11 +10,11 @@ import (
|
||||
func init() {
|
||||
caddy.RegisterPlugin("whoami", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setupWhoami,
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
|
||||
func setupWhoami(c *caddy.Controller) error {
|
||||
func setup(c *caddy.Controller) error {
|
||||
c.Next() // 'whoami'
|
||||
if c.NextArg() {
|
||||
return plugin.Error("whoami", c.ArgErr())
|
||||
|
||||
Reference in New Issue
Block a user