diff options
Diffstat (limited to 'coremain/run.go')
-rw-r--r-- | coremain/run.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coremain/run.go b/coremain/run.go index ff5c5ed56..fa7657886 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -6,6 +6,7 @@ import ( "fmt" "log" "os" + "path/filepath" "runtime" "strings" @@ -95,7 +96,7 @@ func confLoader(serverType string) (caddy.Input, error) { return caddy.CaddyfileFromPipe(os.Stdin, serverType) } - contents, err := os.ReadFile(conf) + contents, err := os.ReadFile(filepath.Clean(conf)) if err != nil { return nil, err } |