mirror of
https://github.com/lucheng0127/virtuallan.git
synced 2025-12-24 13:17:50 +08:00
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
23 lines
480 B
Go
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,
|
|
},
|
|
},
|
|
}
|
|
}
|