aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security/Normalizer
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-04-07 12:07:08 +0000
committerGitHub <noreply@github.com>2021-04-07 12:28:59 +0000
commite5a4236e686bfc97a69753b4a8e932b2f633de83 (patch)
treee83a599c91ca843245493307cc99a1fbbaf29283 /lib/private/Security/Normalizer
parentb9907df702d37ea72bd2a28fca3d50f413207339 (diff)
downloadnextcloud-server-e5a4236e686bfc97a69753b4a8e932b2f633de83.tar.gz
nextcloud-server-e5a4236e686bfc97a69753b4a8e932b2f633de83.zip
Increase subnet matcher
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Security/Normalizer')
-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 cbfc212e1ce..0a3606de28a 100644
--- a/lib/private/Security/Normalizer/IpAddress.php
+++ b/lib/private/Security/Normalizer/IpAddress.php
@@ -93,7 +93,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
*/
@@ -106,7 +106,7 @@ class IpAddress {
}
return $this->getIPv6Subnet(
$this->ip,
- 128
+ 64
);
}