From e7e5806b20c5c39eb451155ccf5a9edc5f7bc477 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Tue, 28 Nov 2023 19:40:44 +0000 Subject: [PATCH] Revert "Remove pprof" This reverts commit 8f33cad025014af2b00baf6ab9bb9daea08788b5. --- cmd/zurg/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/zurg/main.go b/cmd/zurg/main.go index dd8c169..8fa1bdf 100644 --- a/cmd/zurg/main.go +++ b/cmd/zurg/main.go @@ -15,6 +15,8 @@ import ( zurghttp "github.com/debridmediamanager.com/zurg/pkg/http" "github.com/debridmediamanager.com/zurg/pkg/logutil" "github.com/debridmediamanager.com/zurg/pkg/realdebrid" + + _ "net/http/pprof" ) func main() { @@ -55,6 +57,10 @@ func main() { downloadClient := zurghttp.NewHTTPClient(config.GetToken(), config.GetRetriesUntilFailed(), 0, config, log.Named("dlclient")) getfile := universal.NewGetFile(downloadClient) + go func() { + http.ListenAndServe("localhost:6060", nil) + }() + mux := http.NewServeMux() net.Router(mux, getfile, config, torrentMgr, log.Named("net"))