smegmesh/cmd/wgmeshd/main.go

15 lines
346 B
Go
Raw Normal View History

package main
import (
ctrlserver "github.com/tim-beatham/wgmesh/pkg/ctrlserver"
"github.com/tim-beatham/wgmesh/pkg/ctrlserver/api"
2023-09-18 18:00:43 +02:00
"github.com/tim-beatham/wgmesh/pkg/ctrlserver/ipc"
)
func main() {
ctrlServer := ctrlserver.NewCtrlServer("0.0.0.0", 21910)
r := api.RunAPI(ctrlServer)
2023-09-18 18:00:43 +02:00
ipc.RunIpcHandler()
r.Run(ctrlServer.GetEndpoint())
}