yggdrasil: support public key in config generation
authorWilliam Fleurant <meshnet@protonmail.com>
Sat, 18 Nov 2023 08:41:50 +0000 (09:41 +0100)
committerWilliam Fleurant <meshnet@protonmail.com>
Sat, 18 Nov 2023 08:41:50 +0000 (09:41 +0100)
Signed-off-by: William Fleurant <meshnet@protonmail.com>
net/yggdrasil/files/yggdrasil.sh

index a850920dc45d50d4a91269c3cb9a8d61a106e599..9d3c6c3b74c8537483eb59d1d740419a8d8e343d 100755 (executable)
@@ -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() {