mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 00:36:38 +00:00
35 lines
698 B
Go
35 lines
698 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
// nolint:gosec
|
|
_ "net/http/pprof"
|
|
"runtime"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
"github.com/netbirdio/netbird/proxy/cmd/proxy/cmd"
|
|
)
|
|
|
|
var (
|
|
// Version is the application version (set via ldflags during build)
|
|
Version = "dev"
|
|
|
|
// Commit is the git commit hash (set via ldflags during build)
|
|
Commit = "unknown"
|
|
|
|
// BuildDate is the build date (set via ldflags during build)
|
|
BuildDate = "unknown"
|
|
|
|
// GoVersion is the Go version used to build the binary
|
|
GoVersion = runtime.Version()
|
|
)
|
|
|
|
func main() {
|
|
go func() {
|
|
log.Println(http.ListenAndServe("localhost:6060", nil))
|
|
}()
|
|
cmd.SetVersionInfo(Version, Commit, BuildDate, GoVersion)
|
|
cmd.Execute()
|
|
}
|