mirror of
https://github.com/wahyd4/caddy.git
synced 2026-08-09 05:16:13 +10:00
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user