mirror of
https://github.com/coredns/coredns.git
synced 2026-07-12 02:30:10 -04:00
plugin/erratic: apply default truncate amount of 2 for bare truncate (#8240)
This commit is contained in:
@@ -86,6 +86,8 @@ func parseErratic(c *caddy.Controller) (*Erratic, error) {
|
||||
return nil, c.ArgErr()
|
||||
}
|
||||
|
||||
// Defaults.
|
||||
e.truncate = 2
|
||||
if len(args) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user