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.CmdList,
|
|
|
|
cmd.CmdApprove,
|
|
|
|
cmd.CmdRequest,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
err := app.Run(os.Args)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|