diff options
Diffstat (limited to 'plugin/hosts/setup.go')
-rw-r--r-- | plugin/hosts/setup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/hosts/setup.go b/plugin/hosts/setup.go index ed5cd5c7a..3dafb5be7 100644 --- a/plugin/hosts/setup.go +++ b/plugin/hosts/setup.go @@ -2,7 +2,7 @@ package hosts import ( "os" - "path" + "path/filepath" "strings" "time" @@ -83,8 +83,8 @@ func hostsParse(c *caddy.Controller) (Hosts, error) { h.path = args[0] args = args[1:] - if !path.IsAbs(h.path) && config.Root != "" { - h.path = path.Join(config.Root, h.path) + if !filepath.IsAbs(h.path) && config.Root != "" { + h.path = filepath.Join(config.Root, h.path) } s, err := os.Stat(h.path) if err != nil { |