line |
true |
false |
branch |
130
|
4 |
0 |
Data::Validate::IP::is_ipv6($ip) ? : |
|
13 |
4 |
Data::Validate::IP::is_ipv4($ip) ? : |
141
|
11 |
22 |
if ($fallback eq 'x-forwarded-for') { } |
|
11 |
11 |
elsif ($fallback eq 'remote_address') { } |
|
11 |
0 |
elsif ($fallback eq 'rfc-7239') { } |
143
|
6 |
5 |
unless $xff |
150
|
7 |
4 |
unless $f |
157
|
6 |
4 |
if (/for=($ipv4_mask)|(?:"?\[($ipv6_mask)\].*"?)/i) { } |
170
|
18 |
0 |
if ($idx < @candidates) |
194
|
1 |
17 |
unless Data::Validate::IP::is_ip($ip) |
198
|
0 |
17 |
unless $address_family |
201
|
4 |
13 |
if $restrict_family and $restrict_family ne $address_family |
205
|
2 |
11 |
unless &$validator($ip) |