mirror of
https://github.com/jwhited/wgsd.git
synced 2025-01-18 22:09:34 +08:00
fix error returned in setup()
This commit is contained in:
parent
e9812b0947
commit
eacaffd0e3
5
setup.go
5
setup.go
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user