allow ttl 0 (#2348)
This commit is contained in:
parent
95c9e14dcf
commit
41c5cf4424
2 changed files with 3 additions and 3 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue