1
0
Fork 0

remove old addresses

This commit is contained in:
Chl 2019-10-02 01:53:39 +02:00
parent f25c3e0c9a
commit 9726fc885b

View file

@ -79,7 +79,7 @@ sub print_from_offset {
while (<LOGFILE>) { while (<LOGFILE>) {
if ($_ =~ /^([[:xdigit:].:]+) (.+) (.+) (\[[[:alnum:]\/:]+ \+[[:digit:]]{4}\]) (".*") ([[:digit:]]{3}) ([[:digit:]]+) "(.*)" "(.*)"$/) { if ($_ =~ /^([[:xdigit:].:]+) (.+) (.+) (\[[[:alnum:]\/:]+ \+[[:digit:]]{4}\]) (".*") ([[:digit:]]{3}) ([[:digit:]]+) "(.*)" "(.*)"$/) {
#We ignore some IP address #We ignore some IP address
next if ($1 eq '::1' or $1 eq '127.0.0.1' or $1 eq '2a01:e35:2ef3:b360::abac:22' or $1 eq '192.168.0.34'); next if ($1 eq '::1' or $1 eq '127.0.0.1');
if ($6 >= 200 && $6 < 300) { if ($6 >= 200 && $6 < 300) {
++$outputCpt{'2XX'}; ++$outputCpt{'2XX'};