From: William Fleurant Date: Sat, 18 Nov 2023 08:41:50 +0000 (+0100) Subject: yggdrasil: support public key in config generation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f0c4517d2e048fb5568dfa88d703d1a7310c52bc;p=feed%2Fpackages.git yggdrasil: support public key in config generation Signed-off-by: William Fleurant --- diff --git a/net/yggdrasil/files/yggdrasil.sh b/net/yggdrasil/files/yggdrasil.sh index a850920dc4..9d3c6c3b74 100755 --- a/net/yggdrasil/files/yggdrasil.sh +++ b/net/yggdrasil/files/yggdrasil.sh @@ -91,10 +91,10 @@ proto_yggdrasil_add_string() { proto_yggdrasil_generate_keypair() { json_load "$(yggdrasil -genconf -json)" - json_get_vars PublicKey PrivateKey + json_get_vars PrivateKey json_cleanup private_key=$PrivateKey - public_key=$PublicKey + public_key=${PrivateKey:64} } proto_yggdrasil_setup() {