mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Correctly route pprof endpoint (#1527)
This commit is contained in:
parent
91c5472876
commit
69515bb7ac
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -207,7 +207,7 @@ func run(state overseer.State) {
|
|||
if *profile {
|
||||
go func() {
|
||||
router := http.NewServeMux()
|
||||
router.Handle("/debug/pprof", http.DefaultServeMux)
|
||||
router.Handle("/debug/pprof/", http.DefaultServeMux)
|
||||
router.Handle("/debug/fgprof", fgprof.Handler())
|
||||
logger.Info("starting pprof and fgprof server on :18066 /debug/pprof and /debug/fgprof")
|
||||
if err := http.ListenAndServe(":18066", router); err != nil {
|
||||
|
|
Loading…
Reference in a new issue