Home
last modified time | relevance | path

Searched refs:ipOrRange (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/inc/
H A DIp.php136 * @param string $ipOrRange An IP address or CIDR range.
140 public static function ipMatches(string $ip, string $ipOrRange): bool argument
146 if (!str_contains($ipOrRange, '/')) {
147 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);
150 return Ip::ipInRange($ip, $ipOrRange);
/dokuwiki/_test/tests/inc/
H A DIpTest.php160 * @param string $ipOrRange The IP or IP range to test against.
165 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
167 $result = Ip::ipMatches($ip, $ipOrRange);