wireguard-negotiator/main.go

29 lines
547 B
Go

// 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)",
Flags: []cli.Flag{},
Commands: []*cli.Command{
cmd.CmdServer,
cmd.CmdRequest,
cmd.CmdDump,
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}