Update main.go

This commit is contained in:
stefanodvx 2025-04-16 13:05:00 +02:00
parent fb702b40f5
commit 84d005ade2

View file

@ -23,7 +23,8 @@ func main() {
profilerPort, err := strconv.Atoi(os.Getenv("PROFILER_PORT"))
if err == nil && profilerPort > 0 {
go func() {
http.ListenAndServe(fmt.Sprintf("localhost:%d", profilerPort), nil)
log.Printf("starting profiler on port %d", profilerPort)
http.ListenAndServe(fmt.Sprintf(":%d", profilerPort), nil)
}()
}
util.CleanupDownloadsDir()