diff options
author | Josh <josh.t.richards@gmail.com> | 2024-10-31 17:06:36 -0400 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-11-06 08:19:56 +0000 |
commit | e7fa55d59ff65adc0af99c52ff7f6890a0d93513 (patch) | |
tree | e56941fd6ff695db36dbbf7e8b1caa9ed56a1645 /lib | |
parent | 5fd9c03d180fa23ad8716b75a61f756cd29e5baf (diff) | |
download | nextcloud-server-e7fa55d59ff65adc0af99c52ff7f6890a0d93513.tar.gz nextcloud-server-e7fa55d59ff65adc0af99c52ff7f6890a0d93513.zip |
fix(net): Add IPv6 zone handling to IpAddressClassifier
Signed-off-by: Josh <josh.t.richards@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Net/IpAddressClassifier.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Net/IpAddressClassifier.php b/lib/private/Net/IpAddressClassifier.php index 5f41f4a086a..b73d41fd79b 100644 --- a/lib/private/Net/IpAddressClassifier.php +++ b/lib/private/Net/IpAddressClassifier.php @@ -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 */ |