commit d5f8fafe3b09600e16bbd88e40e7163dca66b0ef (patch)
parent 0b74fdd4619623a14a2d3f84033b123b4b892e21
Author: alex <alex@garbash.com>
Date: Wed, 29 Sep 2021 23:26:37 -0400
wggen: Remove redundant private key generation
Whoops! Copy pasted too many times it appears.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/usr/local/bin/wggen b/usr/local/bin/wggen
@@ -21,7 +21,6 @@ fi
CONF="$DATADIR/$NAME"
mkdir -p "$CONF"
openssl rand -base64 32 > "$CONF/private.key"
-openssl rand -base64 32 > "$CONF/private.key"
ifconfig wg9 destroy 2>/dev/null || true
ifconfig wg9 create wgport 13421 wgkey "$(cat "$CONF/private.key")"