mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
yggdrasil: support public key in config generation
Signed-off-by: William Fleurant <meshnet@protonmail.com>
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user