aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-10-31 17:06:36 -0400
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-11-06 08:19:56 +0000
commite7fa55d59ff65adc0af99c52ff7f6890a0d93513 (patch)
treee56941fd6ff695db36dbbf7e8b1caa9ed56a1645 /lib
parent5fd9c03d180fa23ad8716b75a61f756cd29e5baf (diff)
downloadnextcloud-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.php2
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 */