diff options
author | 2022-07-28 10:51:08 -0400 | |
---|---|---|
committer | 2022-07-28 10:51:08 -0400 | |
commit | 95fcf2c480b7ab6a291d97520d0d93296ddfdb6f (patch) | |
tree | 3f4b316b400ad41abea13e3d2d00dcffcf1a4fb0 /plugin/cache/handler.go | |
parent | 2fe5273cd12562aca6939540f0a9e03b51d34aba (diff) | |
download | coredns-95fcf2c480b7ab6a291d97520d0d93296ddfdb6f.tar.gz coredns-95fcf2c480b7ab6a291d97520d0d93296ddfdb6f.tar.zst coredns-95fcf2c480b7ab6a291d97520d0d93296ddfdb6f.zip |
plugin/cache: Add cache disable option (#5540)
* add cache disable options
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/cache/handler.go')
-rw-r--r-- | plugin/cache/handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/cache/handler.go b/plugin/cache/handler.go index 69ec4928d..3d2f43904 100644 --- a/plugin/cache/handler.go +++ b/plugin/cache/handler.go @@ -38,7 +38,8 @@ func (c *Cache) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) ttl := 0 i := c.getIgnoreTTL(now, state, server) if i == nil { - crr := &ResponseWriter{ResponseWriter: w, Cache: c, state: state, server: server, do: do, ad: ad, wildcardFunc: wildcardFunc(ctx)} + crr := &ResponseWriter{ResponseWriter: w, Cache: c, state: state, server: server, do: do, ad: ad, + nexcept: c.nexcept, pexcept: c.pexcept, wildcardFunc: wildcardFunc(ctx)} return c.doRefresh(ctx, state, crr) } ttl = i.ttl(now) |