cmd/stepd: Automatically forbid the configuration file

This commit is contained in:
Sasha Koshka 2024-12-10 00:39:10 -05:00
parent 7480742e9e
commit 68c8deb269

View File

@ -116,6 +116,7 @@ func main () {
StepExt: ucontainer.NewSet(slices.Clone(config["http.step-extension"])...),
Index: slices.Clone(config["http.index-file"]),
ErrorDocument: config.Get("http.error-document"),
DenyAll: ucontainer.NewSet(configFileName),
}
if len(handler.StepExt) == 0 {
handler.StepExt.Add(".step")