Files
virtuallan/pkg/cli/server_linux.go
lucheng 395129216e Windows supported
Support build windows client.
Use in windows, make sure you have been install tap-windows properly.
After launch, the windows client will now listen udp multicast
so if you need to config routes by yourself
2024-07-02 14:49:06 +08:00

23 lines
480 B
Go

package cli
import (
"github.com/lucheng0127/virtuallan/pkg/server"
"github.com/urfave/cli/v2"
)
func NewServerCmd() *cli.Command {
return &cli.Command{
Name: "server",
Usage: "run virtuallan server",
Action: server.Run,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "config-dir",
Aliases: []string{"d"},
Usage: "config directory to launch virtuallan server, conf.yaml as config file, users as user storage",
Required: true,
},
},
}
}