aboutsummaryrefslogtreecommitdiff
path: root/middleware/cache/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/cache/handler.go')
-rw-r--r--middleware/cache/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/cache/handler.go b/middleware/cache/handler.go
index 95b51970e..9c3615e80 100644
--- a/middleware/cache/handler.go
+++ b/middleware/cache/handler.go
@@ -37,6 +37,7 @@ func (c *Cache) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
return c.Next.ServeDNS(ctx, crr, r)
}
+// Name implements the Handler interface.
func (c *Cache) Name() string { return "cache" }
func (c *Cache) get(qname string, qtype uint16, do bool) (*item, bool, bool) {