blib/lib/Plack/Middleware/XForwardedFor.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 14 | 85.7 |
line | true | false | branch |
---|---|---|---|
13 | 8 | 2 | if (my $trust = $self->trust) |
14 | 4 | 4 | ref $trust ? : |
26 | 10 | 0 | if (@forward) |
30 | 8 | 2 | if (my $trust = $self->trust) { } |
32 | 13 | 5 | if (my $next = pop @forward) |
34 | 0 | 17 | unless my $ip = 'Net::IP'->new($addr) |
35 | 10 | 7 | if ($netmask->overlaps($ip)) |