diff options
author | Lauris BH <lauris@nix.lv> | 2018-09-30 01:44:06 +0300 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-09-29 18:44:06 -0400 |
commit | ab5b245182c36ecd79ea71d7ba499e3cce75bee9 (patch) | |
tree | 90b1bef017810f193ea17cc59f31e82800106376 /routers/routes | |
parent | fc0001caa1e9873a86990f7815a75d8f75fbc309 (diff) | |
download | gitea-ab5b245182c36ecd79ea71d7ba499e3cce75bee9.tar.gz gitea-ab5b245182c36ecd79ea71d7ba499e3cce75bee9.zip |
Disable debug routes unless PPROF is enabled in configuration (#4995)
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index bc4879b51a..4ca421065e 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -131,6 +131,7 @@ func NewMacaron() *macaron.Macaron { Func: models.Ping, }, }, + DisableDebug: !setting.EnablePprof, })) m.Use(context.Contexter()) return m |