diff --git a/cmd/main.go b/cmd/main.go index 8589866..7502e86 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,6 +4,8 @@ import ( "context" "flag" "log" + "net/http" + _ "net/http/pprof" "github.com/wlynxg/NetHive/core/config" "github.com/wlynxg/NetHive/core/engine" @@ -23,6 +25,10 @@ func parse() *args { func main() { params := parse() + go func() { + http.ListenAndServe(":6060", nil) + }() + cfg, err := config.Load(params.config) if err != nil { log.Fatal(err)