Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
Matthew Holt committed
Jan 12, 2020 at 18:20 UTC
99e2b56519b89237a28dd176c4eb0604d1cf5297
1 file changed
+1
cmd/commandfuncs.go
+1
@@ -431,6 +431,7 @@ func cmdAdaptConfig(fl Flags) (int, error) {
431
if adaptCmdPrettyFlag {
432
opts["pretty"] = "true"
433
}
434
+ opts["filename"] = adaptCmdInputFlag
435
436
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
437
if err != nil {