| blib/lib/Plack/Middleware/RealIP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 20 | 80.0 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 10 | 0 | if (my $trusted_proxy = $self->trusted_proxy) |
| 16 | 4 | 6 | ref $trusted_proxy ? : |
| 26 | 10 | 0 | if ($header = $self->header) |
| 28 | 10 | 0 | unless $header =~ /^(?:HTTP|CONTENT|COOKIE)/ |
| 32 | 8 | 2 | if exists $env->{$header} |
| 33 | 10 | 0 | if $self->trusted_proxy |
| 35 | 8 | 2 | if (@remote and @trusted_proxy) |
| 41 | 8 | 18 | if $netmask->match($addr) |
| 43 | 7 | 8 | unless $has_matched |
| 46 | 4 | 4 | if (@unconfirmed) { } |