Skip to content

Commit

Permalink
chore: Remove domain validation, batch now accepts only IPv4 or IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelPinheiro committed Sep 4, 2024
1 parent ddc069f commit 1eb11a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IpApiBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function validateEntity(object|string $entity): void

if (is_string($entity)) {
throw_unless(
Validators::isValidDomain($entity) || Validators::isValidIpAddress($entity),
Validators::isValidIpAddress($entity),
new \InvalidArgumentException('Query must be a valid domain or IP address.')
);
} else {
Expand Down

0 comments on commit 1eb11a2

Please sign in to comment.