diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-04-07 12:07:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 12:28:59 +0000 |
commit | e5a4236e686bfc97a69753b4a8e932b2f633de83 (patch) | |
tree | e83a599c91ca843245493307cc99a1fbbaf29283 /tests | |
parent | b9907df702d37ea72bd2a28fca3d50f413207339 (diff) | |
download | nextcloud-server-e5a4236e686bfc97a69753b4a8e932b2f633de83.tar.gz nextcloud-server-e5a4236e686bfc97a69753b4a8e932b2f633de83.zip |
Increase subnet matcher
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Security/Normalizer/IpAddressTest.php | 12 |
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', ], ]; } |