Skip to content

Commit

Permalink
fix: check if dns_get_record is avabile before using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Nov 14, 2024
1 parent c7f4386 commit f3f8d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/BrokenLinkRegistry/ClassifyLink/Classify.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function tryGetDnsRecord(): bool
{
static $dnsCache = [];

if (!$this->config->checkIfDnsRespondsBeforeProbingUrl()) {
if (!$this->config->checkIfDnsRespondsBeforeProbingUrl() || !function_exists('dns_get_record')) {
return true;
}

Expand Down

0 comments on commit f3f8d9a

Please sign in to comment.