diff --git a/back/lib/ips_to_peers_rxfr b/back/lib/ips_to_peers_rxfr index bf02c19..7e50633 100755 --- a/back/lib/ips_to_peers_rxfr +++ b/back/lib/ips_to_peers_rxfr @@ -35,6 +35,5 @@ while IFS= read -r line; do ipv6="$(<<<"${ips}" grep ':')" ipv4="${ipv4%%/*}" ipv6="${ipv6%%/*}" - <<<"${res}" grep -B1 " ${ipv4}" >>"${LOGFILE}" - <<<"${res}" grep -B1 " ${ipv6}" >>"${LOGFILE}" + <<<"${res}" grep -B1 " ${ipv4}\| ${ipv6}" | sed '/--/d' | cut -f2 >>"${LOGFILE}" done