summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-09-30 01:44:06 +0300
committertechknowlogick <hello@techknowlogick.com>2018-09-29 18:44:06 -0400
commitab5b245182c36ecd79ea71d7ba499e3cce75bee9 (patch)
tree90b1bef017810f193ea17cc59f31e82800106376 /routers
parentfc0001caa1e9873a86990f7815a75d8f75fbc309 (diff)
downloadgitea-ab5b245182c36ecd79ea71d7ba499e3cce75bee9.tar.gz
gitea-ab5b245182c36ecd79ea71d7ba499e3cce75bee9.zip
Disable debug routes unless PPROF is enabled in configuration (#4995)
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go1
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