diff options
Diffstat (limited to 'middleware/chaos/chaos.go')
-rw-r--r-- | middleware/chaos/chaos.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/chaos/chaos.go b/middleware/chaos/chaos.go index a7a63c1a1..0064e4f94 100644 --- a/middleware/chaos/chaos.go +++ b/middleware/chaos/chaos.go @@ -17,7 +17,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} - if state.QClass() != dns.ClassINET || state.QType() != dns.TypeTXT { + if state.QClass() != dns.ClassCHAOS || state.QType() != dns.TypeTXT { return c.Next.ServeDNS(ctx, w, r) } m := new(dns.Msg) |