Readd "-wgpsk", accidentially dropped in r1.465 adding "wgdescr"
authorkn <kn@openbsd.org>
Fri, 9 Jun 2023 12:22:01 +0000 (12:22 +0000)
committerkn <kn@openbsd.org>
Fri, 9 Jun 2023 12:22:01 +0000 (12:22 +0000)
Noticed by Bradley Latus
Diff from Jane Johansson
OK tb

sbin/ifconfig/ifconfig.c

index f45fb7e..ecc5edd 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ifconfig.c,v 1.466 2023/06/07 18:42:40 bluhm Exp $    */
+/*     $OpenBSD: ifconfig.c,v 1.467 2023/06/09 12:22:01 kn Exp $       */
 /*     $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $      */
 
 /*
@@ -631,6 +631,7 @@ const struct        cmd {
        { "wgkey",      NEXTARG,        A_WIREGUARD,    setwgkey},
        { "wgrtable",   NEXTARG,        A_WIREGUARD,    setwgrtable},
        { "-wgpeer",    NEXTARG,        A_WIREGUARD,    unsetwgpeer},
+       { "-wgpsk",     0,              A_WIREGUARD,    unsetwgpeerpsk},
        { "-wgdescription", 0,          A_WIREGUARD,    unsetwgpeerdesc},
        { "-wgdescr",   0,              A_WIREGUARD,    unsetwgpeerdesc},
        { "-wgpeerall", 0,              A_WIREGUARD,    unsetwgpeerall},