mirror of
https://github.com/coredns/coredns.git
synced 2025-11-26 13:44:05 -05:00
just use setup (#1574)
All these functions are namespaced by their package anyway; just use setup().
This commit is contained in:
@@ -17,11 +17,11 @@ import (
|
||||
func init() {
|
||||
caddy.RegisterPlugin("reverse", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setupReverse,
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
|
||||
func setupReverse(c *caddy.Controller) error {
|
||||
func setup(c *caddy.Controller) error {
|
||||
networks, fall, err := reverseParse(c)
|
||||
if err != nil {
|
||||
return plugin.Error("reverse", err)
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/mholt/caddy"
|
||||
)
|
||||
|
||||
func TestSetupParse(t *testing.T) {
|
||||
func TestSetup(t *testing.T) {
|
||||
|
||||
_, net4, _ := net.ParseCIDR("10.1.1.0/24")
|
||||
_, net6, _ := net.ParseCIDR("fd01::/64")
|
||||
|
||||
Reference in New Issue
Block a user