mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
Add relay cmd
This commit is contained in:
parent
57a89cf0cc
commit
49dfbc82d9
25
relay/cmd/main.go
Normal file
25
relay/cmd/main.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user