From 51b55b5ac0e45cbd736597c3d5b3f1313e911b99 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 5 Apr 2022 05:02:30 +0200 Subject: [PATCH] showrequestfromblocklist.dat: Fix silly typos. Signed-off-by: Stefan Schantl --- html/cgi-bin/logs.cgi/showrequestfromblocklist.dat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat b/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat index 4f8264acec..98524614f6 100755 --- a/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat +++ b/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat @@ -156,13 +156,13 @@ if (!(open (FILE,($filestr =~ /.gz$/ ? "gzip -dc $filestr |" : $filestr)))) { } my $lines = 0; my @log=(); -my $blaoklist = $cgiparams{blocklist}; +my $blocklist = $cgiparams{blocklist}; if (!$skip) { while () { if (/^${monthstr} ${daystr} ..:..:.. [\w\-]+ kernel:.*BLKLST_(\w+)\s?IN=.*/) { - if($1 eq $blacklist){ + if($1 eq $blocklist){ $log[$lines] = $_; $lines++; } @@ -187,7 +187,7 @@ if ($multifile) { if (!$skip) { while () { if (/^${monthstr} ${daystr} ..:..:.. [\w\-]+ kernel:.*BLKLST_(\w+)\s?IN=.*/) { - if($1 eq $blacklist){ + if($1 eq $blocklist){ $log[$lines] = $_; $lines++; } @@ -309,7 +309,7 @@ foreach $_ (@slice) { $a = $_; # Check whether valid ipv4 or ipv6 address if (($_ =~ /BLKLST_(\w+)\s?IN=/)) { - if($1 eq $blacklist) { + if($1 eq $blocklist) { my $in = '-'; my $out = '-'; my $srcaddr = ''; my $dstaddr = ''; my $protostr = ''; -- 2.39.5