aboutsummaryrefslogtreecommitdiff
path: root/plugin/hosts/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/hosts/setup.go')
-rw-r--r--plugin/hosts/setup.go6
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 {