netbird/relay/cmd/main.go

27 lines
386 B
Go
Raw Normal View History

2024-05-17 20:24:06 +02:00
package main
import (
"os"
2024-05-23 13:24:02 +02:00
"github.com/netbirdio/netbird/util"
2024-05-17 20:24:06 +02:00
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/relay/server"
)
func init() {
util.InitLog("trace", "console")
}
func main() {
2024-05-23 13:24:02 +02:00
address := "10.145.236.1:1235"
2024-05-17 20:24:06 +02:00
srv := server.NewServer()
err := srv.Listen(address)
if err != nil {
log.Errorf("failed to bind server: %s", err)
os.Exit(1)
}
}