Skip to content

Commit

Permalink
Pad IPs before passing them to gmp_import()
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jul 20, 2023
1 parent 32e37b3 commit 8c94f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/X509/Job.php
Expand Up @@ -223,7 +223,7 @@ protected function getScanTargets(): Generator
}

foreach ($targets as $target) {
$addr = gmp_import($target->ip);
$addr = gmp_import(static::binary($target->ip));
$addrFound = false;
foreach ($this->getCidrs() as $cidr) {
list($subnet, $mask) = $cidr;
Expand Down

0 comments on commit 8c94f5e

Please sign in to comment.