From de36fe80edc39063e574f27d855c8f9c3efab081 Mon Sep 17 00:00:00 2001
From: virus2500 <virus2500@me.com>
Date: Tue, 29 Apr 2014 23:22:57 +0200
Subject: [PATCH] removed not anymore needed isIpv4 sub

---
 blocklist.pl | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/blocklist.pl b/blocklist.pl
index df93757..ed03a78 100755
--- a/blocklist.pl
+++ b/blocklist.pl
@@ -198,7 +198,7 @@ sub addIpsToBlocklist {
         } else {
                 $skipped++;
         }
-	}
+	    }
     }
     foreach $line (uniq(@fileArray)) { 
         if ((exists $ipsetArray{"$line"}) || ($line ~~ @whiteListArray)) {
@@ -282,21 +282,6 @@ sub cleanup {
 }
 ############### END cleanup ######################
 
-############ isIpv4 #############
-## check if given value looks  ##
-## like an ipv4 ip address     ##
-#################################
-sub isIpv4 {
-    my ($isIp) = @_;
-    if ($isIp =~ m/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/) {
-        #print "It's an IPv4\n";
-        return $isIp;
-    } else {
-        return 0;
-    }
-}
-######### END isIpv4 ##########
-
 ###### log #######
 ## log $message ##
 ##################
-- 
GitLab