diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-11-06 09:17:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 09:17:52 +0100 |
commit | 3c4290631bb2d51440fd4332335fcba2a2aa9c98 (patch) | |
tree | cadcc5c0da8d4b41b41061522032fc15daaa2ed6 /tests | |
parent | 452e4be4f5e27d76f3cb52b9016c0dbbd989841a (diff) | |
parent | e885e4f13dde99c56ee84106205d348fb399646e (diff) | |
download | nextcloud-server-3c4290631bb2d51440fd4332335fcba2a2aa9c98.tar.gz nextcloud-server-3c4290631bb2d51440fd4332335fcba2a2aa9c98.zip |
Merge pull request #49039 from nextcloud/jtr/fix-ipv6-zone-ids-link-local
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Net/IpAddressClassifierTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Security/Ip/RemoteAddressTest.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Net/IpAddressClassifierTest.php b/tests/lib/Net/IpAddressClassifierTest.php index 616a6872bdb..803be00f740 100644 --- a/tests/lib/Net/IpAddressClassifierTest.php +++ b/tests/lib/Net/IpAddressClassifierTest.php @@ -43,6 +43,7 @@ class IpAddressClassifierTest extends TestCase { return [ ['192.168.0.1'], ['fe80::200:5aee:feaa:20a2'], + ['fe80::1fc4:15d8:78db:2319%enp4s0'], // v6 zone ID ['0:0:0:0:0:ffff:10.0.0.1'], ['0:0:0:0:0:ffff:127.0.0.0'], ['10.0.0.1'], diff --git a/tests/lib/Security/Ip/RemoteAddressTest.php b/tests/lib/Security/Ip/RemoteAddressTest.php index d780c3bc198..d1f621796fe 100644 --- a/tests/lib/Security/Ip/RemoteAddressTest.php +++ b/tests/lib/Security/Ip/RemoteAddressTest.php @@ -52,6 +52,8 @@ class RemoteAddressTest extends \Test\TestCase { // No configuration ['1.2.3.4', false, true], ['1234:4567:8910::', false, true], + // v6 Zone ID + ['fe80::1fc4:15d8:78db:2319%enp4s0', false, true], // Empty configuration ['1.2.3.4', [], true], ['1234:4567:8910::', [], true], |