From 4ab1f9a57321c25296c4553bb08e5a8ac37b29bd Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 2 Dec 2023 18:21:34 -0700 Subject: [PATCH] refactor: :art: Removed extraneous flag --- 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 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%%/*}"