aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Security
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-11-22 14:01:41 +0100
committerVincent Petry <vincent@nextcloud.com>2021-11-22 14:10:11 +0100
commit7e08a4ab157b2be82c286c65ae18fa9199aeba80 (patch)
treef7e90267f2c2462f5b9b956568b3d51c9d3fbf9e /tests/lib/Security
parent68fecc1d9f6810e815c6a6ba80d4c13a0bde98b8 (diff)
downloadnextcloud-server-7e08a4ab157b2be82c286c65ae18fa9199aeba80.tar.gz
nextcloud-server-7e08a4ab157b2be82c286c65ae18fa9199aeba80.zip
Fix getting subnet of ipv4 mapped ipv6 addresses
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'tests/lib/Security')
-rw-r--r--tests/lib/Security/Normalizer/IpAddressTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Security/Normalizer/IpAddressTest.php b/tests/lib/Security/Normalizer/IpAddressTest.php
index b202ecd7234..7492e182c32 100644
--- a/tests/lib/Security/Normalizer/IpAddressTest.php
+++ b/tests/lib/Security/Normalizer/IpAddressTest.php
@@ -39,6 +39,10 @@ class IpAddressTest extends TestCase {
'192.168.0.123/32',
],
[
+ '::ffff:192.168.0.123',
+ '::ffff:192.168.0.123/32',
+ ],
+ [
'2001:0db8:85a3:0000:0000:8a2e:0370:7334',
'2001:db8:85a3::/64',
],