mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 11:25:14 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user