ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
return $this->ip . '/32';
}
$ipv4 = $this->getEmbeddedIpv4($this->ip);
if ($ipv4 !== null) {
return $ipv4 . '/32';
}
return $this->getIPv6Subnet($this->ip);
}
/**
* Returns the specified IP address
*/
public function __toString(): string {
return $this->ip;
}
}
tion>
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/server | www-data |
blob: d9a76becf25cfbc7527b8830e01438cfd4c4d706 (
plain)