mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
test(net): include test for localhost by IP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
b469840b3d
commit
3e90ce89eb
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue