summaryrefslogtreecommitdiffstats
path: root/tests
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:25 +0000
commitb5838c5248b23895e75da1c56026d89b21c6245c (patch)
tree455fdec2157b4ec6d3f8a995f70b685f30f372fd /tests
parentdcbe9283719c3d2cd89011d5e305c08ad8e7db6f (diff)
downloadnextcloud-server-b5838c5248b23895e75da1c56026d89b21c6245c.tar.gz
nextcloud-server-b5838c5248b23895e75da1c56026d89b21c6245c.zip
Increase subnet matcher
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Security/Normalizer/IpAddressTest.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/lib/Security/Normalizer/IpAddressTest.php b/tests/lib/Security/Normalizer/IpAddressTest.php
index 16be71cb225..044fc52b4b9 100644
--- a/tests/lib/Security/Normalizer/IpAddressTest.php
+++ b/tests/lib/Security/Normalizer/IpAddressTest.php
@@ -37,11 +37,19 @@ class IpAddressTest extends TestCase {
],
[
'2001:0db8:85a3:0000:0000:8a2e:0370:7334',
- '2001:db8:85a3::8a2e:370:7334/128',
+ '2001:db8:85a3::/64',
+ ],
+ [
+ '2001:db8:3333:4444:5555:6666:7777:8888',
+ '2001:db8:3333:4444::/64',
+ ],
+ [
+ '::1234:5678',
+ '::/64',
],
[
'[::1]',
- '::1/128',
+ '::/64',
],
];
}