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:
@@ -120,7 +120,7 @@ func (s *Secondary) applyCatalog(origin string, cat *catalog.Catalog, catalogZon
|
||||
|
||||
func (s *Secondary) catalogMemberAllowed(origin, member string) bool {
|
||||
zones, ok := s.catalogZones[origin]
|
||||
return ok && (len(zones) == 0 || zones.Matches(member) != "")
|
||||
return ok && (len(zones) == 0 || zones.Contains(member))
|
||||
}
|
||||
|
||||
func catalogMember(cat *catalog.Catalog, zone string) (catalog.Member, bool) {
|
||||
|
||||
Reference in New Issue
Block a user