[proxy] Add pprof (#5764)

This commit is contained in:
Pascal Fischer
2026-04-01 14:10:41 +02:00
committed by GitHub
parent 940f530ac2
commit 2477f99d89

View File

@@ -1,8 +1,13 @@
package main
import (
"net/http"
// nolint:gosec
_ "net/http/pprof"
"runtime"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/proxy/cmd/proxy/cmd"
)
@@ -21,6 +26,9 @@ var (
)
func main() {
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
cmd.SetVersionInfo(Version, Commit, BuildDate, GoVersion)
cmd.Execute()
}