Add relay cmd

This commit is contained in:
Zoltan Papp 2024-05-17 20:24:06 +02:00
parent 57a89cf0cc
commit 49dfbc82d9

25
relay/cmd/main.go Normal file
View File

@ -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)
}
}