fixed rules parsing & debug

This commit is contained in:
Djeeberjr 2022-04-03 01:44:37 +02:00
parent 03b3375f8c
commit 6ff47b2a29

View File

@ -16,14 +16,14 @@ func init() {
}
func setup(c *caddy.Controller) error {
c.Next()
rules, err := parseRules(c)
if err != nil {
return plugin.Error("override", err)
}
log.Debug(rules)
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
return Override{Next: next, Rules: rules}
})