You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/tunneld/main.go
+44-7Lines changed: 44 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,15 @@ func main() {
74
74
&cli.StringFlag{
75
75
Name: "wireguard-key",
76
76
Aliases: []string{"wg-key"},
77
-
Usage: "The private key for the wireguard server. It should be base64 encoded.",
77
+
Usage: "The private key for the wireguard server. It should be base64 encoded. You can generate a key with `wg genkey`. Mutually exclusive with wireguard-key-file.",
78
78
EnvVars: []string{"TUNNELD_WIREGUARD_KEY"},
79
79
},
80
+
&cli.StringFlag{
81
+
Name: "wireguard-key-file",
82
+
Aliases: []string{"wg-key-file"},
83
+
Usage: "The file path containing the private key for the wireguard server. The contents should be base64 encoded. If the file does not exist, a key will be generated for you and written to the file. Mutually exclusive with wireguard-key.",
0 commit comments