diff options
author | 2023-08-09 08:32:50 -0400 | |
---|---|---|
committer | 2023-08-09 08:32:50 -0400 | |
commit | 6c8581445e195960ef51e8a432f6a70087731324 (patch) | |
tree | 09742d9f5fd4aa6ea1b99777ff17e59d6b0678fd /plugin | |
parent | 932049c6e04abce7c1c2545bbb2bfc67bbf9fc9b (diff) | |
download | coredns-6c8581445e195960ef51e8a432f6a70087731324.tar.gz coredns-6c8581445e195960ef51e8a432f6a70087731324.tar.zst coredns-6c8581445e195960ef51e8a432f6a70087731324.zip |
fix keepttl parsing (#6250)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/cache/setup.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/cache/setup.go b/plugin/cache/setup.go index 7e5dfa174..f8278b872 100644 --- a/plugin/cache/setup.go +++ b/plugin/cache/setup.go @@ -241,6 +241,7 @@ func cacheParse(c *caddy.Controller) (*Cache, error) { return nil, fmt.Errorf("cache type for disable must be %q or %q", Success, Denial) } case "keepttl": + args := c.RemainingArgs() if len(args) != 0 { return nil, c.ArgErr() } |