aboutsummaryrefslogtreecommitdiff
path: root/core/assets/path.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-04-12 22:34:44 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2016-04-12 22:34:44 +0100
commit25cf16af0e816a2b321cf9ed46e91c1ef067927e (patch)
treea786606d66313a136e03275db59e7efd1e3ef285 /core/assets/path.go
parent842953f17936ac02a7d9c82cb31ef70b5bcc1dc5 (diff)
downloadcoredns-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 'core/assets/path.go')
-rw-r--r--core/assets/path.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/assets/path.go b/core/assets/path.go
index 46b883b1c..abe4638d0 100644
--- a/core/assets/path.go
+++ b/core/assets/path.go
@@ -8,9 +8,9 @@ import (
// Path returns the path to the folder
// where the application may store data. This
-// currently resolves to ~/.caddy
+// currently resolves to ~/.coredns
func Path() string {
- return filepath.Join(userHomeDir(), ".caddy")
+ return filepath.Join(userHomeDir(), ".coredns")
}
// userHomeDir returns the user's home directory according to