From 49dfbc82d934b0f14a195c5fe83cd60eb94439c2 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Fri, 17 May 2024 20:24:06 +0200 Subject: [PATCH] Add relay cmd --- relay/cmd/main.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 relay/cmd/main.go diff --git a/relay/cmd/main.go b/relay/cmd/main.go new file mode 100644 index 000000000..cfae8232a --- /dev/null +++ b/relay/cmd/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "github.com/netbirdio/netbird/util" + "os" + + log "github.com/sirupsen/logrus" + + "github.com/netbirdio/netbird/relay/server" +) + +func init() { + util.InitLog("trace", "console") +} + +func main() { + + address := "0.0.0.0:1234" + srv := server.NewServer() + err := srv.Listen(address) + if err != nil { + log.Errorf("failed to bind server: %s", err) + os.Exit(1) + } +}