fix: 🐛 Fix admin peer listing
parent
ee1650e416
commit
b9c93788ea
|
@ -14,7 +14,7 @@
|
||||||
source /etc/wagon/config
|
source /etc/wagon/config
|
||||||
|
|
||||||
rev_ipv4="$(/usr/lib/wagon/ns_update_rev_ipv4 ${IPV4_HUB} | cut -f1 | cut -d'.' -f3-6)"
|
rev_ipv4="$(/usr/lib/wagon/ns_update_rev_ipv4 ${IPV4_HUB} | cut -f1 | cut -d'.' -f3-6)"
|
||||||
res="$(/usr/lib/wagon/ns_lookup_rdns "-query=axfr" "${rev_ipv4}")"
|
res="$(/usr/lib/wagon/ns_lookup_send "-query=axfr" "${rev_ipv4}")"
|
||||||
case $? in
|
case $? in
|
||||||
0) printf '%s' "${res}"; exit 0;;
|
0) printf '%s' "${res}"; exit 0;;
|
||||||
4) printf 'Domain for %s not found!\n' "${1}" >&2; exit 4;;
|
4) printf 'Domain for %s not found!\n' "${1}" >&2; exit 4;;
|
||||||
|
|
Loading…
Reference in New Issue