mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(net): Add IPv6 zone handling to IpAddressClassifier
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
077eea18b5
commit
da4066ae39
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class IpAddressClassifier {
|
|||
public function isLocalAddress(string $ip): bool {
|
||||
$parsedIp = Factory::parseAddressString(
|
||||
$ip,
|
||||
ParseStringFlag::IPV4_MAYBE_NON_DECIMAL | ParseStringFlag::IPV4ADDRESS_MAYBE_NON_QUAD_DOTTED
|
||||
ParseStringFlag::IPV4_MAYBE_NON_DECIMAL | ParseStringFlag::IPV4ADDRESS_MAYBE_NON_QUAD_DOTTED | ParseStringFlag::MAY_INCLUDE_ZONEID
|
||||
);
|
||||
if ($parsedIp === null) {
|
||||
/* Not an IP */
|
||||
|
|
|
|||
Loading…
Reference in a new issue