You are here

static function CleantalkHelper::ip_is_private_network in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 7.4 src/CleantalkHelper.php \CleantalkHelper::ip_is_private_network()
1 call to CleantalkHelper::ip_is_private_network()
CleantalkHelper::ip_get in src/CleantalkHelper.php

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);
}