mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix(tests): Add IpAddressClassifier v6 zone ID test
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
7ff1654ed3
commit
fa17ed6fb4
2 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class Range implements IRange {
|
|||
}
|
||||
|
||||
public function contains(IAddress $address): bool {
|
||||
return $this->range->contains(Factory::parseAddressString((string) $address));
|
||||
return $this->range->contains(Factory::parseAddressString((string) $address, ParseStringFlag::MAY_INCLUDE_ZONEID));
|
||||
}
|
||||
|
||||
public function __toString(): string {
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class IpAddressClassifierTest extends TestCase {
|
|||
return [
|
||||
['192.168.0.1'],
|
||||
['fe80::200:5aee:feaa:20a2'],
|
||||
['fe80::1fc4:15d8:78db:2319%enp4s0'], // v6 zone ID
|
||||
['0:0:0:0:0:ffff:10.0.0.1'],
|
||||
['0:0:0:0:0:ffff:127.0.0.0'],
|
||||
['10.0.0.1'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue