static function CleantalkHelper::ip_is_private_network in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkHelper.php \CleantalkHelper::ip_is_private_network()
1 call to CleantalkHelper::ip_is_private_network()
File
- src/
CleantalkHelper.php, line 308
Class
- CleantalkHelper
- Cleantalk's hepler class
Code
static function ip_is_private_network($ip, $ip_type = 'v4') {
return self::ip_mask_match($ip, self::$private_networks[$ip_type], $ip_type);
}