diff options
author | 2023-06-01 14:07:58 -0400 | |
---|---|---|
committer | 2023-06-01 14:07:58 -0400 | |
commit | d3965b8b607d691494078874c12eedbccc97b47e (patch) | |
tree | a287cabcde453e6d20be459a761db88ea5b78d45 /plugin/tls/tls.go | |
parent | d0375bc0269eccb1966ccf38a9b43263d551dee4 (diff) | |
download | coredns-d3965b8b607d691494078874c12eedbccc97b47e.tar.gz coredns-d3965b8b607d691494078874c12eedbccc97b47e.tar.zst coredns-d3965b8b607d691494078874c12eedbccc97b47e.zip |
Revert "plugin/tls: respect the path specified by root plugin (#5944)" (#6136)
This reverts commit d0375bc0269eccb1966ccf38a9b43263d551dee4.
Diffstat (limited to 'plugin/tls/tls.go')
-rw-r--r-- | plugin/tls/tls.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugin/tls/tls.go b/plugin/tls/tls.go index ff60b678c..2658159a9 100644 --- a/plugin/tls/tls.go +++ b/plugin/tls/tls.go @@ -2,7 +2,6 @@ package tls import ( ctls "crypto/tls" - "path/filepath" "github.com/coredns/caddy" "github.com/coredns/coredns/core/dnsserver" @@ -58,11 +57,6 @@ func parseTLS(c *caddy.Controller) error { return c.Errf("unknown option '%s'", c.Val()) } } - for i := range args { - if !filepath.IsAbs(args[i]) && config.Root != "" { - args[i] = filepath.Join(config.Root, args[i]) - } - } tls, err := tls.NewTLSConfigFromArgs(args...) if err != nil { return err |