fix error returned in setup()

This commit is contained in:
Jordan Whited 2020-05-26 16:24:45 -07:00
parent e9812b0947
commit eacaffd0e3

View File

@ -36,8 +36,9 @@ func setup(c *caddy.Controller) error {
client, err := wgctrl.New()
if err != nil {
return fmt.Errorf("wgsd: error constructing wgctrl client: %v",
err)
return plugin.Error("wgsd",
fmt.Errorf("wgsd: error constructing wgctrl client: %v",
err))
}
// Add the Plugin to CoreDNS, so Servers can use it in their plugin chain.