Disable debug routes unless PPROF is enabled in configuration (#4995)
This commit is contained in:
parent
fc0001caa1
commit
ab5b245182
3 changed files with 19 additions and 14 deletions
|
@ -131,6 +131,7 @@ func NewMacaron() *macaron.Macaron {
|
|||
Func: models.Ping,
|
||||
},
|
||||
},
|
||||
DisableDebug: !setting.EnablePprof,
|
||||
}))
|
||||
m.Use(context.Contexter())
|
||||
return m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue