mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	fix keepttl parsing (#6250)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
		
							
								
								
									
										1
									
								
								plugin/cache/setup.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								plugin/cache/setup.go
									
									
									
									
										vendored
									
									
								
							@@ -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)
 | 
										return nil, fmt.Errorf("cache type for disable must be %q or %q", Success, Denial)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			case "keepttl":
 | 
								case "keepttl":
 | 
				
			||||||
 | 
									args := c.RemainingArgs()
 | 
				
			||||||
				if len(args) != 0 {
 | 
									if len(args) != 0 {
 | 
				
			||||||
					return nil, c.ArgErr()
 | 
										return nil, c.ArgErr()
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user