summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-04-07 12:07:08 +0000
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-04-12 10:36:24 +0000
commita55715d9ed9d7a041f9c4f16352c65654ddb64f5 (patch)
treec761afe067e5819b12930eb2a745342212162c48 /lib/private
parent0de63d77512d3489d655f3693f21611af3229cc8 (diff)
downloadnextcloud-server-a55715d9ed9d7a041f9c4f16352c65654ddb64f5.tar.gz
nextcloud-server-a55715d9ed9d7a041f9c4f16352c65654ddb64f5.zip
Increase subnet matcher
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Security/Normalizer/IpAddress.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Security/Normalizer/IpAddress.php b/lib/private/Security/Normalizer/IpAddress.php
index b471c499440..9e7d84e7e3f 100644
--- a/lib/private/Security/Normalizer/IpAddress.php
+++ b/lib/private/Security/Normalizer/IpAddress.php
@@ -92,7 +92,7 @@ class IpAddress {
}
/**
- * Gets either the /32 (IPv4) or the /128 (IPv6) subnet of an IP address
+ * Gets either the /32 (IPv4) or the /64 (IPv6) subnet of an IP address
*
* @return string
*/
@@ -105,7 +105,7 @@ class IpAddress {
}
return $this->getIPv6Subnet(
$this->ip,
- 128
+ 64
);
}