fixed rules parsing & debug
This commit is contained in:
parent
03b3375f8c
commit
6ff47b2a29
4
setup.go
4
setup.go
@ -16,14 +16,14 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setup(c *caddy.Controller) error {
|
func setup(c *caddy.Controller) error {
|
||||||
c.Next()
|
|
||||||
|
|
||||||
rules, err := parseRules(c)
|
rules, err := parseRules(c)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return plugin.Error("override", err)
|
return plugin.Error("override", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Debug(rules)
|
||||||
|
|
||||||
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
|
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
|
||||||
return Override{Next: next, Rules: rules}
|
return Override{Next: next, Rules: rules}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user