mirror of
https://github.com/coredns/coredns.git
synced 2026-10-08 19:45:21 -04:00
plugin: use Zones.Contains when any match suffices (#8505)
This commit is contained in:
@@ -27,7 +27,7 @@ type F struct {
|
||||
// Through will check if we should fallthrough for qname. Note that we've named the
|
||||
// variable in each plugin "Fall", so this then reads Fall.Through().
|
||||
func (f F) Through(qname string) bool {
|
||||
return plugin.Zones(f.Zones).Matches(qname) != ""
|
||||
return plugin.Zones(f.Zones).Contains(qname)
|
||||
}
|
||||
|
||||
// setZones will set zones in f.
|
||||
|
||||
Reference in New Issue
Block a user