This commit is contained in:
JackDoan
2026-04-21 13:31:16 -05:00
parent bf4e37e99d
commit ad6b918e4d
28 changed files with 1039 additions and 698 deletions

View File

@@ -3,7 +3,10 @@ package nebula
import (
"context"
"fmt"
"log"
"net"
"net/http"
_ "net/http/pprof"
"net/netip"
"runtime/debug"
"strings"
@@ -49,6 +52,11 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
l.Println(string(b))
}
//todo!!!
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
err := configLogger(l, c)
if err != nil {
return nil, util.ContextualizeIfNeeded("Failed to configure the logger", err)