Merge pull request #55757 from nextcloud/test/net/localhost-by-ip

test(net): include test for localhost by IP
This commit is contained in:
Joas Schilling 2025-10-16 11:38:11 +02:00 committed by GitHub
commit 8b51705b4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,8 @@ class IpAddressClassifierTest extends TestCase {
public static function localIpAddressData(): array {
return [
['127.0.0.1'],
['127.0.0.13'], // all 127.0.0.0/8 network is loopback address
['192.168.0.1'],
['fe80::200:5aee:feaa:20a2'],
['fe80::1fc4:15d8:78db:2319%enp4s0'], // v6 zone ID

View file

@ -42,6 +42,8 @@ class RemoteHostValidatorIntegrationTest extends TestCase {
['[::1]'],
['[::]'],
['192.168.0.1'],
['127.0.0.1'],
['127.0.0.13'], // all 127.0.0.0/8 network is loopback address
['172.16.42.1'],
['[fdf8:f53b:82e4::53]'],
['[fe80::200:5aee:feaa:20a2]'],