aboutsummaryrefslogtreecommitdiff
path: root/middleware/chaos/chaos.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/chaos/chaos.go')
-rw-r--r--middleware/chaos/chaos.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/middleware/chaos/chaos.go b/middleware/chaos/chaos.go
index 506298de4..8b6df3e84 100644
--- a/middleware/chaos/chaos.go
+++ b/middleware/chaos/chaos.go
@@ -4,6 +4,7 @@ import (
"os"
"github.com/miekg/coredns/middleware"
+ "github.com/miekg/coredns/request"
"github.com/miekg/dns"
"golang.org/x/net/context"
@@ -18,7 +19,7 @@ type Chaos struct {
}
func (c Chaos) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
- state := middleware.State{W: w, Req: r}
+ state := request.Request{W: w, Req: r}
if state.QClass() != dns.ClassCHAOS || state.QType() != dns.TypeTXT {
return c.Next.ServeDNS(ctx, w, r)
}