diff options
author | 2016-04-12 22:34:44 +0100 | |
---|---|---|
committer | 2016-04-12 22:34:44 +0100 | |
commit | 25cf16af0e816a2b321cf9ed46e91c1ef067927e (patch) | |
tree | a786606d66313a136e03275db59e7efd1e3ef285 /middleware/rewrite/condition.go | |
parent | 842953f17936ac02a7d9c82cb31ef70b5bcc1dc5 (diff) | |
download | coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.gz coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.zst coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.zip |
Use dns.IsSubDomain (#112)
For the match function use the proper thing from go dns. Fix all
callers and tests to use this.
Fixes: #107
Diffstat (limited to 'middleware/rewrite/condition.go')
-rw-r--r-- | middleware/rewrite/condition.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/rewrite/condition.go b/middleware/rewrite/condition.go index ddd4c38b1..3ccde21f9 100644 --- a/middleware/rewrite/condition.go +++ b/middleware/rewrite/condition.go @@ -76,6 +76,7 @@ func startsWithFunc(a, b string) bool { // endsWithFunc is condition for EndsWith operator. // It checks if b is a suffix of a. func endsWithFunc(a, b string) bool { + // TODO(miek): IsSubDomain return strings.HasSuffix(a, b) } |