aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2023-08-09 08:32:50 -0400
committerGravatar GitHub <noreply@github.com> 2023-08-09 08:32:50 -0400
commit6c8581445e195960ef51e8a432f6a70087731324 (patch)
tree09742d9f5fd4aa6ea1b99777ff17e59d6b0678fd /plugin
parent932049c6e04abce7c1c2545bbb2bfc67bbf9fc9b (diff)
downloadcoredns-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.go1
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()
}