diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-07-26 11:39:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 11:39:32 +0200 |
commit | 7615536977eda7f3bda5c29eaa780a323c97afc7 (patch) | |
tree | e546e2a2ea14d7a2475edd14a3c3c52678ea875a /tests | |
parent | 9f77aba9fac4badc35ff634eaf83252f3850b921 (diff) | |
parent | c5ffd7ce32a74c06dddd55652edea5c896ee9b3d (diff) | |
download | nextcloud-server-7615536977eda7f3bda5c29eaa780a323c97afc7.tar.gz nextcloud-server-7615536977eda7f3bda5c29eaa780a323c97afc7.zip |
Merge pull request #33031 from nextcloud/fix/improve-local-ip-detection
Improve local IP detection
Diffstat (limited to 'tests')
-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'], ]; } |