fix: 🐛 Fix admin peer listing

master
Keith Irwin 2023-12-02 17:59:00 -07:00
parent 735463d932
commit ee1650e416
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ while IFS= read -r line; do
ipv4="${ipv4%%/*}"
ipv6="${ipv6%%/*}"
rev_ipv4="$(/usr/lib/wagon/ns_update_rev_ipv4 ${ipv4})"
domain="$(<<<"${res}" grep "^${rev_ipv4} name = " | cut -f1 | cut -d' ' -f3 | sed 's/\.$//')"
domain="$(<<<"${res}" grep "^${rev_ipv4} name = " | cut -f2 | cut -d' ' -f3 | sed 's/\.$//')"
case "${format}" in
'json') printf '{"domain":"%s","ipv4":"%s","ipv6":"%s","pubkey":"%s"},' \
"${domain}" "${ipv4}" "${ipv6}" "${pubkey}";;