yggdrasil: support public key in config generation
Signed-off-by: William Fleurant <meshnet@protonmail.com>
This commit is contained in:
parent
99c7c36ce1
commit
f0c4517d2e
1 changed files with 2 additions and 2 deletions
|
@ -91,10 +91,10 @@ proto_yggdrasil_add_string() {
|
||||||
|
|
||||||
proto_yggdrasil_generate_keypair() {
|
proto_yggdrasil_generate_keypair() {
|
||||||
json_load "$(yggdrasil -genconf -json)"
|
json_load "$(yggdrasil -genconf -json)"
|
||||||
json_get_vars PublicKey PrivateKey
|
json_get_vars PrivateKey
|
||||||
json_cleanup
|
json_cleanup
|
||||||
private_key=$PrivateKey
|
private_key=$PrivateKey
|
||||||
public_key=$PublicKey
|
public_key=${PrivateKey:64}
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_yggdrasil_setup() {
|
proto_yggdrasil_setup() {
|
||||||
|
|
Loading…
Reference in a new issue