1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

cmd: adapt: Set config filename so it can be hidden (fixes #2974)

This commit is contained in:
Matthew Holt 2020-01-12 18:20:19 -07:00
parent 64f0173948
commit 99e2b56519
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -431,6 +431,7 @@ func cmdAdaptConfig(fl Flags) (int, error) {
if adaptCmdPrettyFlag { if adaptCmdPrettyFlag {
opts["pretty"] = "true" opts["pretty"] = "true"
} }
opts["filename"] = adaptCmdInputFlag
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts) adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
if err != nil { if err != nil {