Home
last modified time | relevance | path

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

/dokuwiki/inc/
DIp.php114 * @param string $ipOrRange An IP address or CIDR range.
118 public static function ipMatches(string $ip, string $ipOrRange): bool argument
124 if (strpos($ipOrRange, '/') === false) {
125 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);
128 return Ip::ipInRange($ip, $ipOrRange);
/dokuwiki/_test/tests/inc/
DIpTest.php134 * @param string $ipOrRange The IP or IP range to test against.
139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
141 $result = Ip::ipMatches($ip, $ipOrRange);