From 6fdafc4155899da13c17ab4a6f5d78bc90cc18ef Mon Sep 17 00:00:00 2001 From: William Fleurant Date: Sat, 18 Nov 2023 09:38:47 +0100 Subject: luci-app-yggdrasil: support public key in config generation Signed-off-by: William Fleurant --- protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/luci-proto-yggdrasil/root') diff --git a/protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil b/protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil index d4545277ab..35d6627be7 100755 --- a/protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil +++ b/protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil @@ -16,12 +16,12 @@ case "$1" in case "$2" in generateKeyPair) json_load "$(yggdrasil -genconf -json)" - json_get_vars PublicKey PrivateKey + json_get_vars PrivateKey json_cleanup json_init json_add_object "keys" json_add_string "priv" "$PrivateKey" - json_add_string "pub" "$PublicKey" + json_add_string "pub" "${PrivateKey:64}" json_close_object json_dump ;; -- cgit v1.2.3