line |
true |
false |
branch |
156
|
0 |
0 |
unless ($value =~ /^(\S+)\s+(.+)$/)
|
177
|
0 |
0 |
if ($added_criteria == 0) { }
|
|
0 |
0 |
elsif ($def ne '') { }
|
198
|
0 |
0 |
unless ($value =~ /^(\S+)\s+(.+)$/)
|
219
|
0 |
0 |
if ($added_criteria == 0) { }
|
|
0 |
0 |
elsif ($def ne '') { }
|
240
|
0 |
0 |
unless ($value =~ /^(\S+)\s+(.+)$/)
|
261
|
0 |
0 |
if ($added_criteria == 0) { }
|
|
0 |
0 |
elsif ($def ne '') { }
|
280
|
0 |
0 |
unless (&HAS_CIDR())
|
285
|
0 |
0 |
unless ($value =~ /^(\S+)\s+(.+)$/)
|
302
|
0 |
0 |
if $@
|
309
|
0 |
0 |
if ($added_criteria == 0) { }
|
|
0 |
0 |
elsif ($def ne '') { }
|
331
|
0 |
0 |
unless ($value =~ /^(\S+)\s+(.+)$/)
|
354
|
0 |
0 |
if ($added_criteria == 0) { }
|
|
0 |
0 |
elsif ($def ne '') { }
|
384
|
0 |
0 |
unless (defined $value and length $value)
|
387
|
0 |
0 |
unless (-f $value)
|
414
|
0 |
0 |
unless (defined $value and length $value)
|
417
|
0 |
0 |
unless (-f $value)
|
441
|
0 |
0 |
if (&HAS_GEOIP2() and defined $conf_country_db_path || defined $conf_country_db_isp_path) { }
|
|
0 |
0 |
elsif (&HAS_GEOIP()) { }
|
444
|
0 |
0 |
if defined $conf_country_db_path and -f $conf_country_db_path
|
448
|
0 |
0 |
if (defined $conf_country_db_path)
|
450
|
0 |
0 |
unless $self->{'geoip'}
|
453
|
0 |
0 |
if defined $conf_country_db_isp_path and -f $conf_country_db_isp_path
|
457
|
0 |
0 |
if (defined $conf_country_db_isp_path)
|
458
|
0 |
0 |
unless $self->{'geoisp'}
|
462
|
0 |
0 |
if ($@ or not $self->{'geoip'} || $self->{'geoisp'})
|
483
|
0 |
0 |
if $gip_have >= $gip_wanted
|
484
|
0 |
0 |
if $gip_have >= $gip_wanted
|
485
|
0 |
0 |
if $gip_have >= $gip_wanted
|
488
|
0 |
0 |
if ($flag_silent and $gic_have >= $gic_wanted) { }
|
500
|
0 |
0 |
if ($@ or not $self->{'geoip'} || $self->{'geoisp'})
|
521
|
0 |
0 |
if (defined $self->{'geoip'}) { }
|
531
|
0 |
0 |
unless $info->{'hosts'}
|
534
|
0 |
0 |
unless defined $info->{'types'}{'a'} or defined $info->{'types'}{'parsed'}
|
539
|
0 |
0 |
if (exists $rule->{'exclusions'} and exists $rule->{'exclusions'}{$domain})
|
544
|
0 |
0 |
if (not $host =~ /^$IP_ADDRESS$/) { }
|
545
|
0 |
0 |
unless ($dns_available)
|
561
|
0 |
0 |
if (exists $rule->{'exclusions'} and exists $rule->{'exclusions'}{$ip})
|
566
|
0 |
0 |
if (exists $rule->{'countries'})
|
569
|
0 |
0 |
if ($self->{'use_geoip2'} == 1) { }
|
571
|
0 |
0 |
if (index($self->{'geoip'}->metadata->description->{'en'}, 'City') != -1) { }
|
582
|
0 |
0 |
defined $cc ? :
|
586
|
0 |
0 |
unless defined $cc
|
589
|
0 |
0 |
unless exists $rule->{'countries'}{$cc}
|
593
|
0 |
0 |
if (would_log("dbg", "rules") > 1)
|
604
|
0 |
0 |
if (exists $rule->{'continents'})
|
607
|
0 |
0 |
if ($self->{'use_geoip2'} == 1) { }
|
616
|
0 |
0 |
defined $cont ? :
|
620
|
0 |
0 |
unless defined $cont
|
623
|
0 |
0 |
unless exists $rule->{'continents'}{$cont}
|
627
|
0 |
0 |
if (would_log("dbg", "rules") > 1)
|
638
|
0 |
0 |
if (exists $rule->{'isps'})
|
641
|
0 |
0 |
if ($self->{'use_geoip2'} == 1) { }
|
647
|
0 |
0 |
defined $isp ? :
|
650
|
0 |
0 |
unless defined $isp
|
653
|
0 |
0 |
unless exists $rule->{'isps'}{$isp}
|
657
|
0 |
0 |
if (would_log("dbg", "rules") > 1)
|
668
|
0 |
0 |
if (exists $rule->{'cidr'})
|
671
|
0 |
0 |
unless $rule->{'cidr'}->find($ip)
|
675
|
0 |
0 |
if (would_log("dbg", "rules") > 1)
|
692
|
0 |
0 |
if ($got_hit == 1) { }
|