moved log to ResponseWrapper
This commit is contained in:
parent
fb818b86a2
commit
5a7c784680
@ -3,9 +3,12 @@ package override
|
|||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var log = clog.NewWithPlugin("override")
|
||||||
|
|
||||||
type Rule struct {
|
type Rule struct {
|
||||||
Search net.IP
|
Search net.IP
|
||||||
Override net.IP
|
Override net.IP
|
||||||
|
3
setup.go
3
setup.go
@ -6,11 +6,8 @@ import (
|
|||||||
"github.com/coredns/caddy"
|
"github.com/coredns/caddy"
|
||||||
"github.com/coredns/coredns/core/dnsserver"
|
"github.com/coredns/coredns/core/dnsserver"
|
||||||
"github.com/coredns/coredns/plugin"
|
"github.com/coredns/coredns/plugin"
|
||||||
clog "github.com/coredns/coredns/plugin/pkg/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = clog.NewWithPlugin("overide")
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
plugin.Register("override", setup)
|
plugin.Register("override", setup)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user