@@ -23,7 +23,7 @@ |
||
23 | 23 | * Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets. |
24 | 24 | * |
25 | 25 | * @param string $requestIP IP to check |
26 | - * @param string|array $ips List of IPs or subnets (can be a string if only a single one) |
|
26 | + * @param string $ips List of IPs or subnets (can be a string if only a single one) |
|
27 | 27 | * |
28 | 28 | * @return bool Whether the IP is valid |
29 | 29 | */ |
@@ -157,6 +157,9 @@ |
||
157 | 157 | return self::consolidate($ips, $max); |
158 | 158 | } |
159 | 159 | |
160 | + /** |
|
161 | + * @param integer $max |
|
162 | + */ |
|
160 | 163 | public static function ultra_compression($subnetsArray, $max = null) |
161 | 164 | { |
162 | 165 | $subnetToMaskMap = []; |