diff --git a/back/lib/ips_to_peers b/back/lib/ips_to_peers index 67f40c6..f6825cb 100755 --- a/back/lib/ips_to_peers +++ b/back/lib/ips_to_peers @@ -19,7 +19,7 @@ res="$(/usr/lib/wagon/ns_lookup_axfr_rdns4)" || exit 4 # TODO: Run this loop in parallel while IFS= read -r line; do pubkey="$(<<<"${line}" cut -d ' ' -f1)" - ips="$(<<<"${line}" cut -d ' ' -f2 | tr ' ' '\n')" + ips="$(<<<"${line}" cut -f2 | tr ' ' '\n')" ipv4="$(<<<"${ips}" grep '\.')" ipv6="$(<<<"${ips}" grep ':')" ipv4="${ipv4%%/*}"