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:24 +0000
commita55715d9ed9d7a041f9c4f16352c65654ddb64f5 (patch)
treec761afe067e5819b12930eb2a745342212162c48 /tests
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 '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',
],
];
}