mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 23:09:08 +01:00
[proxy] Add pprof (#5764)
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"net/http"
|
||||||
|
// nolint:gosec
|
||||||
|
_ "net/http/pprof"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/netbirdio/netbird/proxy/cmd/proxy/cmd"
|
"github.com/netbirdio/netbird/proxy/cmd/proxy/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -21,6 +26,9 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
go func() {
|
||||||
|
log.Println(http.ListenAndServe("localhost:6060", nil))
|
||||||
|
}()
|
||||||
cmd.SetVersionInfo(Version, Commit, BuildDate, GoVersion)
|
cmd.SetVersionInfo(Version, Commit, BuildDate, GoVersion)
|
||||||
cmd.Execute()
|
cmd.Execute()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user