From ab5b245182c36ecd79ea71d7ba499e3cce75bee9 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sun, 30 Sep 2018 01:44:06 +0300 Subject: Disable debug routes unless PPROF is enabled in configuration (#4995) --- routers/routes/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/routes') 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 -- cgit v1.2.3