test(net): include test for localhost by IP

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2025-06-16 20:32:15 +02:00
parent b469840b3d
commit 3e90ce89eb
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8
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]'],