mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix(net): Add IPv6 zone handling to IpAddressClassifier
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
5fd9c03d18
commit
e7fa55d59f
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class IpAddressClassifier {
|
|||
public function isLocalAddress(string $ip): bool {
|
||||
$parsedIp = Factory::parseAddressString(
|
||||
$ip,
|
||||
ParseStringFlag::IPV4_MAYBE_NON_DECIMAL | ParseStringFlag::IPV4ADDRESS_MAYBE_NON_QUAD_DOTTED
|
||||
ParseStringFlag::IPV4_MAYBE_NON_DECIMAL | ParseStringFlag::IPV4ADDRESS_MAYBE_NON_QUAD_DOTTED | ParseStringFlag::MAY_INCLUDE_ZONEID
|
||||
);
|
||||
if ($parsedIp === null) {
|
||||
/* Not an IP */
|
||||
|
|
|
|||
Loading…
Reference in a new issue