summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-yggdrasil/root
diff options
context:
space:
mode:
authorWilliam Fleurant <meshnet@protonmail.com>2023-11-18 09:38:47 +0100
committerWilliam Fleurant <meshnet@protonmail.com>2023-11-18 09:38:47 +0100
commit6fdafc4155899da13c17ab4a6f5d78bc90cc18ef (patch)
treef13688a8c02d4a5622f07f515fc23475fda0d17d /protocols/luci-proto-yggdrasil/root
parente6a1f119e6ec2eed48ea583d8176c21bf658a499 (diff)
luci-app-yggdrasil: support public key in config generation
Signed-off-by: William Fleurant <meshnet@protonmail.com>
Diffstat (limited to 'protocols/luci-proto-yggdrasil/root')
-rwxr-xr-xprotocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil4
1 files changed, 2 insertions, 2 deletions
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
;;