mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
This reverts commit d0375bc026.
This commit is contained in:
@@ -3,7 +3,6 @@ package grpc
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/coredns/caddy"
|
||||
"github.com/coredns/coredns/core/dnsserver"
|
||||
@@ -111,11 +110,7 @@ func parseBlock(c *caddy.Controller, g *GRPC) error {
|
||||
if len(args) > 3 {
|
||||
return c.ArgErr()
|
||||
}
|
||||
for i := range args {
|
||||
if !filepath.IsAbs(args[i]) && dnsserver.GetConfig(c).Root != "" {
|
||||
args[i] = filepath.Join(dnsserver.GetConfig(c).Root, args[i])
|
||||
}
|
||||
}
|
||||
|
||||
tlsConfig, err := pkgtls.NewTLSConfigFromArgs(args...)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user