line |
true |
false |
branch |
39
|
0 |
2 |
unless $$self{'host'} |
40
|
0 |
2 |
unless $$self{'port'} |
41
|
2 |
0 |
unless $$self{'debug'} |
53
|
0 |
2 |
$$self{'debug'} > 2 ? : |
67
|
0 |
1 |
if $$self{'setdns'} |
87
|
0 |
0 |
if ($^O =~ /darwin/i) |
90
|
0 |
0 |
if ($stderr or $result[0] < 0) { } |
100
|
0 |
0 |
unless (grep {$^O eq $_;} 'VMS', 'MSWin32', 'os2', 'dos', 'MacOS', 'darwin', 'NetWare', 'beos', 'vos') |
103
|
0 |
0 |
if ($stderr or $result[0] < 0) { } |
113
|
0 |
0 |
if ($stderr or $result[0]) { } |
128
|
0 |
0 |
if ($^O =~ /darwin/i) |
131
|
0 |
0 |
if ($stderr or $result[0] < 0) { } |
139
|
0 |
0 |
unless (grep {$^O eq $_;} 'VMS', 'MSWin32', 'os2', 'dos', 'MacOS', 'darwin', 'NetWare', 'beos', 'vos') |
146
|
0 |
0 |
$stderr || $result[0] ? : |
155
|
0 |
1 |
if $$self{'setdns'} |
165
|
0 |
0 |
if ($$self{'adfilter'} and $qtype eq 'AAAA' || $qtype eq 'A' || $qtype eq 'PTR') |
167
|
0 |
0 |
if (my $ip = $self->query_adfilter($qname, $qtype)) |
184
|
1 |
0 |
if ($answer) { } |
206
|
1 |
2 |
if $$self{'debug'} or $force_flag |
218
|
0 |
2 |
if ($$self{'adblock_stack'}) |
222
|
0 |
0 |
$$self{'adfilter'} ? : |
225
|
0 |
2 |
if ($$self{'blacklist'}) |
228
|
0 |
0 |
$$self{'adfilter'} ? : |
230
|
0 |
2 |
if ($$self{'whitelist'}) |
243
|
0 |
0 |
if $qtype eq 'A' or $qtype eq 'AAAA' |
244
|
0 |
0 |
if $qtype eq 'PTR' |
257
|
0 |
0 |
if exists $$self{'adfilter'}{$hostname} or exists $$self{'adfilter'}{$trim} or exists $$self{'adfilter'}{$sld} |
273
|
0 |
0 |
unless $reverse_ip |
281
|
2 |
0 |
if $$self{'forwarders'} |
287
|
0 |
0 |
unless open RESOLV, '/etc/resolv.conf' |
290
|
0 |
0 |
if (/^nameserver\s+([\d\.]+)/) |
296
|
0 |
0 |
unless @dns_servers |
304
|
0 |
0 |
unless my $hostsfile = $$_{'path'} |
308
|
0 |
0 |
if ($age >= $refresh) |
309
|
0 |
0 |
unless my $url = $$_{'url'} |
326
|
0 |
0 |
unless open HOSTS, $hostsfile |
330
|
0 |
0 |
unless s/^\|\|(.*)\^(\$third-party)?$/$1/ |
343
|
0 |
0 |
unless open HOSTS, $hostsfile |
347
|
0 |
0 |
if /^\s*#/ |
348
|
0 |
0 |
if /^$/ |
362
|
0 |
0 |
unless open OUT, '>/var/named/adfilter_dumpfile' |