wg: no hyphen in preshared, to keep uniformity
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
5fab6f18d5
commit
c98c415bd1
|
@ -217,7 +217,7 @@ static void pretty_print(struct wgdevice *device)
|
|||
if (memcmp(device->private_key, zero, WG_KEY_LEN))
|
||||
terminal_printf(" " TERMINAL_BOLD "private key" TERMINAL_RESET ": %s\n", masked_key(device->private_key));
|
||||
if (memcmp(device->preshared_key, zero, WG_KEY_LEN))
|
||||
terminal_printf(" " TERMINAL_BOLD "pre-shared key" TERMINAL_RESET ": %s\n", masked_key(device->preshared_key));
|
||||
terminal_printf(" " TERMINAL_BOLD "preshared key" TERMINAL_RESET ": %s\n", masked_key(device->preshared_key));
|
||||
if (device->port)
|
||||
terminal_printf(" " TERMINAL_BOLD "listening port" TERMINAL_RESET ": %u\n", device->port);
|
||||
if (device->fwmark)
|
||||
|
|
2
src/wg.8
2
src/wg.8
|
@ -210,7 +210,7 @@ ignored.
|
|||
If set to \fIalways\fP, always print ANSI colorized output. If set to \fInever\fP, never print ANSI colorized output. If set to \fIauto\fP, something invalid, or unset, then print ANSI colorized output only when writing to a TTY.
|
||||
.TP
|
||||
.I WG_HIDE_KEYS
|
||||
If set to \fInever\fP, then the pretty-printing \fBshow\fP sub-command will show private and pre-shared keys in the output. If set to \fIalways\fP, something invalid, or unset, then private and pre-shared keys will be printed as "(hidden)".
|
||||
If set to \fInever\fP, then the pretty-printing \fBshow\fP sub-command will show private and preshared keys in the output. If set to \fIalways\fP, something invalid, or unset, then private and preshared keys will be printed as "(hidden)".
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR ip (8),
|
||||
|
|
2
src/wg.c
2
src/wg.c
|
@ -19,7 +19,7 @@ static const struct {
|
|||
{ "setconf", setconf_main, "Applies a configuration file to a WireGuard interface" },
|
||||
{ "addconf", setconf_main, "Appends a configuration file to a WireGuard interface" },
|
||||
{ "genkey", genkey_main, "Generates a new private key and writes it to stdout" },
|
||||
{ "genpsk", genkey_main, "Generates a new pre-shared key and writes it to stdout" },
|
||||
{ "genpsk", genkey_main, "Generates a new preshared key and writes it to stdout" },
|
||||
{ "pubkey", pubkey_main, "Reads a private key from stdin and writes a public key to stdout" }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue