summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-04-12 13:32:21 +0200
committerGitHub <noreply@github.com>2021-04-12 13:32:21 +0200
commit87212ab0972fe32c367cb2be90451fb71dde57fd (patch)
tree455fdec2157b4ec6d3f8a995f70b685f30f372fd /lib
parentdcbe9283719c3d2cd89011d5e305c08ad8e7db6f (diff)
parentb5838c5248b23895e75da1c56026d89b21c6245c (diff)
downloadnextcloud-server-87212ab0972fe32c367cb2be90451fb71dde57fd.tar.gz
nextcloud-server-87212ab0972fe32c367cb2be90451fb71dde57fd.zip
Merge pull request #26514 from nextcloud/backport/26439/stable21
[stable21] Increase subnet matcher
Diffstat (limited to 'lib')
-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
);
}