plugin register (#3321)
These plugins where missed in #3287 because their setup is done in a file other than setup.go Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
4ff5635a6e
commit
ba5d4a6372
5 changed files with 6 additions and 31 deletions
|
@ -1,11 +1,6 @@
|
|||
// Package bind allows binding to a specific interface instead of bind to all of them.
|
||||
package bind
|
||||
|
||||
import "github.com/caddyserver/caddy"
|
||||
import "github.com/coredns/coredns/plugin"
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin("bind", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
func init() { plugin.Register("bind", setup) }
|
||||
|
|
|
@ -13,12 +13,7 @@ import (
|
|||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin("cancel", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
func init() { plugin.Register("cancel", setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
ca := Cancel{timeout: 5001 * time.Millisecond}
|
||||
|
|
|
@ -7,12 +7,7 @@ import (
|
|||
"github.com/caddyserver/caddy"
|
||||
)
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin("debug", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
func init() { plugin.Register("debug", setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
config := dnsserver.GetConfig(c)
|
||||
|
|
|
@ -12,12 +12,7 @@ import (
|
|||
|
||||
var log = clog.NewWithPlugin("root")
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin("root", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
func init() { plugin.Register("root", setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
config := dnsserver.GetConfig(c)
|
||||
|
|
|
@ -10,12 +10,7 @@ import (
|
|||
"github.com/caddyserver/caddy"
|
||||
)
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin("tls", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
func init() { plugin.Register("tls", setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
err := parseTLS(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue