diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-07-12 12:09:05 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-07-12 12:09:05 +0200 |
commit | c5ffd7ce32a74c06dddd55652edea5c896ee9b3d (patch) | |
tree | 514c6612e3e5177b32cac784f672cc52a03bbec2 /tests/lib/Http | |
parent | 707b46bb01e67b764274fc00275e2076aeea5327 (diff) | |
download | nextcloud-server-c5ffd7ce32a74c06dddd55652edea5c896ee9b3d.tar.gz nextcloud-server-c5ffd7ce32a74c06dddd55652edea5c896ee9b3d.zip |
Use Symfony IpUtils to check for local IP ranges
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Http')
-rw-r--r-- | tests/lib/Http/Client/LocalAddressCheckerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/Http/Client/LocalAddressCheckerTest.php b/tests/lib/Http/Client/LocalAddressCheckerTest.php index 0bba1cee5f4..9f2f6c72993 100644 --- a/tests/lib/Http/Client/LocalAddressCheckerTest.php +++ b/tests/lib/Http/Client/LocalAddressCheckerTest.php @@ -96,6 +96,8 @@ class LocalAddressCheckerTest extends \Test\TestCase { ['10.0.0.1'], ['::'], ['::1'], + ['100.100.100.200'], + ['192.0.0.1'], ]; } @@ -116,6 +118,9 @@ class LocalAddressCheckerTest extends \Test\TestCase { ['another-host.local'], ['service.localhost'], ['!@#$'], // test invalid url + ['100.100.100.200'], + ['192.0.0.1'], + ['randomdomain.internal'], ]; } |