mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 09:40:13 +08:00
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
This commit is contained in:
parent
64f0173948
commit
99e2b56519
|
@ -431,6 +431,7 @@ func cmdAdaptConfig(fl Flags) (int, error) {
|
|||
if adaptCmdPrettyFlag {
|
||||
opts["pretty"] = "true"
|
||||
}
|
||||
opts["filename"] = adaptCmdInputFlag
|
||||
|
||||
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user