allow ttl 0 (#2348)

This commit is contained in:
Chris O'Haver 2018-11-30 13:05:49 -05:00 committed by GitHub
parent 95c9e14dcf
commit 41c5cf4424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -247,8 +247,8 @@ func ParseStanza(c *caddy.Controller) (*Kubernetes, error) {
if err != nil {
return nil, err
}
if t < 5 || t > 3600 {
return nil, c.Errf("ttl must be in range [5, 3600]: %d", t)
if t < 0 || t > 3600 {
return nil, c.Errf("ttl must be in range [0, 3600]: %d", t)
}
k8s.ttl = uint32(t)
case "transfer":