From c5ffd7ce32a74c06dddd55652edea5c896ee9b3d Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 12 Jul 2022 12:09:05 +0200 Subject: Use Symfony IpUtils to check for local IP ranges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/lib/Http/Client/LocalAddressCheckerTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/lib/Http/Client/LocalAddressCheckerTest.php') 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'], ]; } -- cgit v1.2.3