JackDoan před 5 měsíci
rodič
revize
40b4ae7fb4
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      main.go

+ 5 - 0
main.go

@@ -5,6 +5,8 @@ import (
 	"fmt"
 	"log/slog"
 	"net"
+	"net/http"
+	_ "net/http/pprof"
 	"net/netip"
 	"runtime"
 	"runtime/debug"
@@ -34,6 +36,9 @@ func Main(c *config.C, configTest bool, buildVersion string, l *slog.Logger, dev
 		buildVersion = moduleVersion()
 	}
 
+	//todo no merge
+	go http.ListenAndServe(":6060", nil)
+
 	// Print the config if in test, the exit comes later
 	if configTest {
 		b, err := yaml.Marshal(c.Settings)