diff options
author | 2016-03-21 21:21:29 +0000 | |
---|---|---|
committer | 2016-03-21 21:21:29 +0000 | |
commit | 740178c83f1be226fa1faa62d0887857bc09bb22 (patch) | |
tree | 47642f477deb4b10f8c9d42f6b33a0d4b584974d /middleware/zone.go | |
parent | ecc5f2867153c1faad882d63954894ec4027fc09 (diff) | |
download | coredns-740178c83f1be226fa1faa62d0887857bc09bb22.tar.gz coredns-740178c83f1be226fa1faa62d0887857bc09bb22.tar.zst coredns-740178c83f1be226fa1faa62d0887857bc09bb22.zip |
more stuff; insight: use proxy for upstream queries
Diffstat (limited to 'middleware/zone.go')
-rw-r--r-- | middleware/zone.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/middleware/zone.go b/middleware/zone.go index 6798bca8e..aa1171c28 100644 --- a/middleware/zone.go +++ b/middleware/zone.go @@ -4,12 +4,12 @@ import "strings" type Zones []string -// Matches checks to see if other matches p. -// The match will return the most specific zones -// that matches other. The empty string signals a not found +// Matches checks to see if other matches p. The match will return the most +// specific zones that matches other. The empty string signals a not found // condition. func (z Zones) Matches(qname string) string { zone := "" + // TODO(miek): use IsSubDomain here? for _, zname := range z { if strings.HasSuffix(qname, zname) { if len(zname) > len(zone) { |