diff options
author | 2018-10-21 15:59:37 +0200 | |
---|---|---|
committer | 2018-10-21 13:59:37 +0000 | |
commit | 4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53 (patch) | |
tree | 5ccb309de73dcf49cc4370ec3e08a64604b8e347 /plugin/dnssec | |
parent | cf0422371825e97608950d015b5f570416444d4f (diff) | |
download | coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.gz coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.zst coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.zip |
Use filepath when manipulating file paths (#2221)
Automatically submitted.
Diffstat (limited to 'plugin/dnssec')
-rw-r--r-- | plugin/dnssec/setup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/dnssec/setup.go b/plugin/dnssec/setup.go index a699ee33c..df7e54b70 100644 --- a/plugin/dnssec/setup.go +++ b/plugin/dnssec/setup.go @@ -2,7 +2,7 @@ package dnssec import ( "fmt" - "path" + "path/filepath" "strconv" "strings" @@ -146,8 +146,8 @@ func keyParse(c *caddy.Controller) ([]*DNSKEY, error) { if strings.HasSuffix(k, ".private") { base = k[:len(k)-8] } - if !path.IsAbs(base) && config.Root != "" { - base = path.Join(config.Root, base) + if !filepath.IsAbs(base) && config.Root != "" { + base = filepath.Join(config.Root, base) } k, err := ParseKeyFile(base+".key", base+".private") if err != nil { |