mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 18:23:13 -04:00 
			
		
		
		
	mw/etcd: fix 'fallthrough' (#1026)
* mw/etcd: revert 'add fallthrough' This removes 'fallthrough' for *etcd* which is not needed. This was added in00f5c7797but is totally not needed and creates backwards incompat behavior even. Thanks to @johnbelamaric for pointing this out in #925. * remove here as well * Revert "remove here as well" This reverts commit9d44397827. * Revert "mw/etcd: revert 'add fallthrough'" This reverts commit0cfe3cb1ab. * mw/{etcd,kubernetes}: use fallthrough correctly reverts of reverts, will rebase and squash later.
This commit is contained in:
		
				
					committed by
					
						 John Belamaric
						John Belamaric
					
				
			
			
				
	
			
			
			
						parent
						
							594c6d7522
						
					
				
				
					commit
					bcdc99ab11
				
			| @@ -19,10 +19,7 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M | ||||
|  | ||||
| 	zone := middleware.Zones(k.Zones).Matches(state.Name()) | ||||
| 	if zone == "" { | ||||
| 		if k.Fallthrough { | ||||
| 			return middleware.NextOrFailure(k.Name(), k.Next, ctx, w, r) | ||||
| 		} | ||||
| 		return dns.RcodeServerFailure, nil | ||||
| 		return middleware.NextOrFailure(k.Name(), k.Next, ctx, w, r) | ||||
| 	} | ||||
|  | ||||
| 	state.Zone = zone | ||||
|   | ||||
		Reference in New Issue
	
	Block a user