mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-23 06:28:01 +02:00
Disable debug routes unless PPROF is enabled in configuration (#4995)
This commit is contained in:

committed by
techknowlogick

parent
fc0001caa1
commit
ab5b245182
@ -131,6 +131,7 @@ func NewMacaron() *macaron.Macaron {
|
||||
Func: models.Ping,
|
||||
},
|
||||
},
|
||||
DisableDebug: !setting.EnablePprof,
|
||||
}))
|
||||
m.Use(context.Contexter())
|
||||
return m
|
||||
|
Reference in New Issue
Block a user