Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-07-26 12:39:32 +0300
committerGitHub <noreply@github.com>2022-07-26 12:39:32 +0300
commit7615536977eda7f3bda5c29eaa780a323c97afc7 (patch)
treee546e2a2ea14d7a2475edd14a3c3c52678ea875a /tests
parent9f77aba9fac4badc35ff634eaf83252f3850b921 (diff)
parentc5ffd7ce32a74c06dddd55652edea5c896ee9b3d (diff)
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.php5
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'],
];
}