mw/etcd: fix 'fallthrough' (#1026)
* mw/etcd: revert 'add fallthrough' This removes 'fallthrough' for *etcd* which is not needed. This was added in00f5c7797
but 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:
parent
594c6d7522
commit
bcdc99ab11
2 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue