diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-11-22 14:01:41 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-23 10:23:00 +0000 |
commit | e98ee218bed76197af2f09b0be088298f344e1b1 (patch) | |
tree | b04d3b2d73d0f2a258cf8c87e66cea30685c10bb /tests | |
parent | a33e0a658091139c3a6a63cf86550a3c0b87fdf3 (diff) | |
download | nextcloud-server-e98ee218bed76197af2f09b0be088298f344e1b1.tar.gz nextcloud-server-e98ee218bed76197af2f09b0be088298f344e1b1.zip |
Fix getting subnet of ipv4 mapped ipv6 addresses
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Security/Normalizer/IpAddressTest.php | 4 |
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', ], |