From ee1650e416826acdc0131558ea6affbb56256c89 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 2 Dec 2023 17:59:00 -0700 Subject: [PATCH] fix: :bug: Fix admin peer listing --- back/lib/ips_to_peers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/lib/ips_to_peers b/back/lib/ips_to_peers index 1157108..67f40c6 100755 --- a/back/lib/ips_to_peers +++ b/back/lib/ips_to_peers @@ -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}";;