This commit is contained in:
Manuel Friedli 2020-08-04 04:22:16 +02:00
parent 758e53a270
commit fd3b719cb2

View file

@ -132,10 +132,10 @@ function filter() {
# Reject already banned addresses # Reject already banned addresses
while read -r -u3 address ; do while read -r -u3 address ; do
if [[ "${banned}" != *"${address}${ext}${suffix}"* ]] ; then if [[ "${banned}" != *"${address}${ext}${suffix}"* ]] ; then
echo "Considering ${address}." echo "Considering ${address}${ext}${suffix}."
echo "${address}" >> "${filtered}" echo "${address}" >> "${filtered}"
else else
echo "IGNORING ${address}, already banned." echo "IGNORING ${address}${ext}${suffix}, already banned."
fi fi
done 3< "${file}" done 3< "${file}"
@ -392,7 +392,6 @@ parse_command_line_args "$@"
check_installed "sudo" "app-admin/sudo" check_installed "sudo" "app-admin/sudo"
check_installed "python" "dev-lang/python:3.8" check_installed "python" "dev-lang/python:3.8"
check_installed "fail2ban-client" "net-analyzer/fail2ban" check_installed "fail2ban-client" "net-analyzer/fail2ban"
check_installed "whois" "net-misc/whois"
check_installed "cut" "sys-apps/coreutils" check_installed "cut" "sys-apps/coreutils"
check_installed "id" "sys-apps/coreutils" check_installed "id" "sys-apps/coreutils"
check_installed "sort" "sys-apps/coreutils" check_installed "sort" "sys-apps/coreutils"