diff options
Diffstat (limited to 'plugin/file/zone.go')
-rw-r--r-- | plugin/file/zone.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/file/zone.go b/plugin/file/zone.go index ecfd74faa..e94a00f16 100644 --- a/plugin/file/zone.go +++ b/plugin/file/zone.go @@ -3,7 +3,7 @@ package file import ( "fmt" "net" - "path" + "path/filepath" "strings" "sync" "time" @@ -48,7 +48,7 @@ func NewZone(name, file string) *Zone { z := &Zone{ origin: dns.Fqdn(name), origLen: dns.CountLabel(dns.Fqdn(name)), - file: path.Clean(file), + file: filepath.Clean(file), Tree: &tree.Tree{}, Expired: new(bool), reloadShutdown: make(chan bool), |