mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 03:55:21 -04:00
plugin: use Zones.Contains when any match suffices (#8505)
This commit is contained in:
@@ -18,8 +18,7 @@ import (
|
||||
|
||||
// Transfer implements the transfer.Transfer interface.
|
||||
func (k *Kubernetes) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
match := plugin.Zones(k.Zones).Matches(zone)
|
||||
if match == "" {
|
||||
if !plugin.Zones(k.Zones).Contains(zone) {
|
||||
return nil, transfer.ErrNotAuthoritative
|
||||
}
|
||||
// state is not used here, hence the empty request.Request{]
|
||||
|
||||
Reference in New Issue
Block a user