wireguard-negotiator/main.go

29 lines
547 B
Go
Raw Permalink Normal View History

2019-12-19 19:48:52 +08:00
// wireguard-negotiator is a tool to exchange WireGuard keys over HTTP(S).
package main // import "github.com/serverwentdown/wireguard-negotiator"
import (
"log"
"os"
"github.com/serverwentdown/wireguard-negotiator/cmd"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "wireguard-negotiator",
Usage: "Exchange WireGuard keys over HTTP(S)",
2019-12-20 17:41:49 +08:00
Flags: []cli.Flag{},
2019-12-19 19:48:52 +08:00
Commands: []*cli.Command{
cmd.CmdServer,
cmd.CmdRequest,
2020-01-05 11:14:39 +08:00
cmd.CmdDump,
2019-12-19 19:48:52 +08:00
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}