Skip to content

Commit ab5b245

Browse files
lafrikstechknowlogick
authored andcommitted
Disable debug routes unless PPROF is enabled in configuration (#4995)
1 parent fc0001c commit ab5b245

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

Gopkg.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

routers/routes/routes.go

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func NewMacaron() *macaron.Macaron {
131131
Func: models.Ping,
132132
},
133133
},
134+
DisableDebug: !setting.EnablePprof,
134135
}))
135136
m.Use(context.Contexter())
136137
return m

vendor/github.com/go-macaron/toolbox/toolbox.go

+17-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)