cmd/stepd: Automatically forbid the configuration file
This commit is contained in:
parent
7480742e9e
commit
68c8deb269
@ -116,6 +116,7 @@ func main () {
|
|||||||
StepExt: ucontainer.NewSet(slices.Clone(config["http.step-extension"])...),
|
StepExt: ucontainer.NewSet(slices.Clone(config["http.step-extension"])...),
|
||||||
Index: slices.Clone(config["http.index-file"]),
|
Index: slices.Clone(config["http.index-file"]),
|
||||||
ErrorDocument: config.Get("http.error-document"),
|
ErrorDocument: config.Get("http.error-document"),
|
||||||
|
DenyAll: ucontainer.NewSet(configFileName),
|
||||||
}
|
}
|
||||||
if len(handler.StepExt) == 0 {
|
if len(handler.StepExt) == 0 {
|
||||||
handler.StepExt.Add(".step")
|
handler.StepExt.Add(".step")
|
||||||
|
Loading…
Reference in New Issue
Block a user