luci-proto-yggdrasil: getPeers calls yggctl with quoted url
authorWilliam Fleurant <meshnet@protonmail.com>
Sun, 12 Nov 2023 11:26:36 +0000 (12:26 +0100)
committerWilliam Fleurant <meshnet@protonmail.com>
Sun, 12 Nov 2023 11:26:36 +0000 (12:26 +0100)
Signed-off-by: William Fleurant <meshnet@protonmail.com>
protocols/luci-proto-yggdrasil/root/usr/libexec/rpcd/luci.yggdrasil

index 921195f65fce05e7343fb3d3a873bfd9f2ed7f26..d4545277ab069ea01032f07cad7cf322389dffe8 100755 (executable)
@@ -29,7 +29,7 @@ case "$1" in
                                read -r input
                                json_load "$input"
                                json_get_vars interface
-                               echo "$(yggdrasilctl -endpoint=unix:///tmp/yggdrasil/${interface}.sock -json getPeers)"
+                               yggdrasilctl -endpoint="unix:///tmp/yggdrasil/${interface}.sock" -json getPeers
                        ;;
                esac
        ;;