From a9398b93eb64fc34284f0432f6e506d9f2969ad2 Mon Sep 17 00:00:00 2001 From: Stephan Geisler Date: Fri, 20 Sep 2019 16:49:32 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eupdate=5Fblocklist.sh=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_blocklist.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/update_blocklist.sh b/update_blocklist.sh index cceda51..f02dfaf 100644 --- a/update_blocklist.sh +++ b/update_blocklist.sh @@ -48,8 +48,6 @@ while read BLOCKED_IP do # Check if IP valid VALID_IPv4=$(echo "$BLOCKED_IP" | grep -Eo "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | wc -l) - -echo "$BLOCKED_IP" if [[ $VALID_IPv4 -eq 1 ]]; then # Convert IPv4 to IPv6 :) @@ -61,15 +59,15 @@ echo "$BLOCKED_IP" countadded=$(( $countadded + 1 )) if [[ $LOGLEVEL -eq 2 ]]; then echo "IP added to Database! --> $BLOCKED_IP" -# elif [[ $LOGLEVEL -eq 1 ]]; then -# echo -n "." + elif [[ $LOGLEVEL -eq 1 ]]; then + echo -n "." fi else countskipped=$(( $countskipped + 1 )) if [[ $LOGLEVEL -eq 2 ]]; then echo "IP already in Database! --> $BLOCKED_IP" -# elif [[ $LOGLEVEL -eq 1 ]]; then -# echo -n "." + elif [[ $LOGLEVEL -eq 1 ]]; then + echo -n "." fi fi fi