aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/wildcard.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/file/wildcard.go')
-rw-r--r--middleware/file/wildcard.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/middleware/file/wildcard.go b/middleware/file/wildcard.go
deleted file mode 100644
index 9526cb53f..000000000
--- a/middleware/file/wildcard.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package file
-
-import "github.com/miekg/dns"
-
-// replaceWithWildcard replaces the left most label with '*'.
-func replaceWithAsteriskLabel(qname string) (wildcard string) {
- i, shot := dns.NextLabel(qname, 0)
- if shot {
- return ""
- }
-
- return "*." + qname[i:]
-}