We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8ea2cd + d3d9ee1 commit ff2a118Copy full SHA for ff2a118
src/Mezzio/IpAddressFactory.php
@@ -27,12 +27,14 @@ public function __invoke(ContainerInterface $container): IpAddress
27
$trustedProxies = $config['rka']['ip_address']['trusted_proxies'] ?? null;
28
$attributeName = $config['rka']['ip_address']['attribute_name'] ?? null;
29
$headersToInspect = $config['rka']['ip_address']['headers_to_inspect'] ?? [];
30
+ $hopCount = $config['rka']['ip_address']['hop_count'] ?? 0;
31
32
return new IpAddress(
33
$checkProxyHeaders,
34
$trustedProxies,
35
$attributeName,
- $headersToInspect
36
+ $headersToInspect,
37
+ $hopCount
38
);
39
}
40
0 commit comments