aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-10-31 17:06:36 -0400
committerGitHub <noreply@github.com>2024-10-31 17:06:36 -0400
commitda4066ae3966f9996eda1017b7e72e444b5a6421 (patch)
tree7a6d7794ef840bc09b0065293936d0535804904a
parent077eea18b517ef25315c3cb5c8bca8202c12bfa4 (diff)
downloadnextcloud-server-da4066ae3966f9996eda1017b7e72e444b5a6421.tar.gz
nextcloud-server-da4066ae3966f9996eda1017b7e72e444b5a6421.zip
fix(net): Add IPv6 zone handling to IpAddressClassifier
Signed-off-by: Josh <josh.t.richards@gmail.com>
-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 */