mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
showrequestfromblocklist.dat: Fix silly typos.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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 (<FILE>) {
|
||||
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 (<FILE>) {
|
||||
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 = '';
|
||||
|
||||
Reference in New Issue
Block a user